-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
groupId is int whereas friendId is uint32_t, reason? #606
Comments
@robinlinden would it make sense to add this to the 0.2.0 milestone or will it conflict with #295? |
Don't worry about #295. If it conflicts I'll change it in that PR. We'll put this in 0.2.0. |
This is legacy reasons. All numbers used to be signed ints, but we changed it a few years ago in the api redesign. These old groupav functions weren't part of the redesign because they are really strange (they take callbacks but aren't event-like functions). |
@sudden6 can you make a PR for this? |
to change the type to |
Yes. |
In https://github.com/TokTok/c-toxcore/blob/master/toxav/toxav.api.h#L595 the groupId is an
int
whereas throughout the rest of the API friendId's areuint32_t
like in https://github.com/TokTok/c-toxcore/blob/master/toxcore/tox.h#L1293I don't think it's of much relevance right now, but is this a mistake? Or am I overlooking special meanings for
groupId < 0
?The text was updated successfully, but these errors were encountered: