Skip to content

Commit

Permalink
address errors with certain compiler configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahShiSFB committed Dec 1, 2023
1 parent ffad181 commit 6813a5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/objective-c/GRPCClient/GRPCTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ extern NSString* _Nonnull const kGRPCHeadersKey;
extern NSString* _Nonnull const kGRPCTrailersKey;

/** The id of a transport implementation. */
typedef char* _Nonnull GRPCTransportID;
typedef const char* _Nonnull GRPCTransportID;

/**
* Implement this protocol to provide a token to gRPC when a call is initiated.
Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/GRPCClient/private/GRPCCore/GRPCChannel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ - (NSDictionary *)channelArgs {
[NSNumber numberWithUnsignedInteger:_callOptions.responseSizeLimit];
}

if (_callOptions.compressionAlgorithm != GRPC_COMPRESS_NONE) {
if (_callOptions.compressionAlgorithm != GRPCCompressNone) {
args[@GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM] =
[NSNumber numberWithInteger:_callOptions.compressionAlgorithm];
}
Expand Down

0 comments on commit 6813a5a

Please sign in to comment.