-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[objc] GRPCErrorCode enum base type to int32_t #27908
Conversation
@@ -23,7 +23,7 @@ | |||
* Note that a few of these are never produced by the gRPC libraries, but are of | |||
* general utility for server applications to produce. | |||
*/ | |||
typedef NS_ENUM(NSUInteger, GRPCErrorCode) { | |||
typedef NS_ENUM(int32_t, GRPCErrorCode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Daniel! LGTM in general :)
2 thoughts:
-
Is this a non-breaking change for all clients?
-
There are a few other enums in this file, as well as throughout the codebase, which i wonder would benefit from the same improvement?
Thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, this change is non-breaking. This PR changes just the GRPCErrorCode enum. We will follow up with incremental changes to the rest of the enum when we made corresponding g3 patches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks :)
(In general, for the sake of API consistency i'd prefer our APIs to use similar types if possible.. But it's fine with me since you're going to do a bunch of follow-ups soon :))
18c1e34
to
f1506ff
Compare
…)" This reverts commit 6b91698.
Updating GRPCErrorCode base enum type from NSUInteger to int32_t to have better integer size consistency across various architectures (32/64).