diff options
author | murgatroid99 <mlumish@google.com> | 2015-04-29 10:58:24 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-04-29 10:58:24 -0700 |
commit | a571cebe01e32a7cf013ca074a97b11509dee167 (patch) | |
tree | feaeb7b3b4e4dde0e4b291ab6236619c41e9809e /src/objective-c/GRPCClient/private | |
parent | def47aa9f39f375150d63eedea67b89d98de5638 (diff) |
Fixed missing increment
Diffstat (limited to 'src/objective-c/GRPCClient/private')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 4 | ||||
-rw-r--r-- | src/objective-c/GRPCClient/private/NSDictionary+GRPC.h | 2 | ||||
-rw-r--r-- | src/objective-c/GRPCClient/private/NSDictionary+GRPC.m | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index c79daf434e..50dea9a4dd 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -53,7 +53,7 @@ - (instancetype)initWithMetadata:(NSDictionary *)metadata handler:(void (^)(void))handler { if (self = [super init]) { - _send_metadata = [metadata grpc_getMetadataArray]; + _send_metadata = [metadata grpc_metadataArray]; _count = metadata.count; _handler = handler; } @@ -292,7 +292,7 @@ grpc_op *ops_array = gpr_malloc(nops * sizeof(grpc_op)); size_t i = 0; for (id op in operations) { - [op getOp:&ops_array[i]]; + [op getOp:&ops_array[i++]]; [opProcessors addObject:[op opProcessor]]; } grpc_call_error error = grpc_call_start_batch(_call, ops_array, nops, diff --git a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.h b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.h index f060421727..622fddcf8e 100644 --- a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.h +++ b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.h @@ -36,5 +36,5 @@ @interface NSDictionary (GRPC) + (instancetype)grpc_dictionaryFromMetadata:(struct grpc_metadata *)entries count:(size_t)count; -- (grpc_metadata *)grpc_getMetadataArray; +- (grpc_metadata *)grpc_metadataArray; @end diff --git a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m index 6ddb35cab6..c350f32f2a 100644 --- a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m +++ b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m @@ -54,7 +54,7 @@ return metadata; } -- (grpc_metadata *)grpc_getMetadataArray { +- (grpc_metadata *)grpc_metadataArray { grpc_metadata *metadata = gpr_malloc([self count] * sizeof(grpc_metadata)); int i = 0; for (id key in self) { |