Skip to content

Commit 8042375

Browse files
authored
Merge branch 'master' into locale_independent_ifdefs
2 parents 229c37f + b87d04a commit 8042375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/flatbuffers/grpc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class SliceAllocator : public Allocator {
121121
memcpy_downward(old_p, old_size, new_p, new_size, in_use_back,
122122
in_use_front);
123123
slice_ = new_slice;
124-
return new_p;
124+
return const_cast<uint8_t *>(slice_.begin());
125125
}
126126

127127
private:

0 commit comments

Comments
 (0)