Fixed warning in the file.

Removed the warning from the file.
This commit is contained in:
Amit Srivastava 2019-03-28 15:09:18 +05:30
parent 72339c0fab
commit d5da545d26

View File

@ -86,7 +86,7 @@ int DynamicBuffer::WriteToBuffer(char** buffer) {
// Set offset of strings.
int32_t start = sizeof(int32_t) * (num_strings + 2);
for (int i = 0; i < offset_.size(); i++) {
for (size_t i = 0; i < offset_.size(); i++) {
int32_t offset = start + offset_[i];
memcpy(*buffer + sizeof(int32_t) * (i + 1), &offset, sizeof(int32_t));
}