mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-28 21:08:30 +00:00
print_number: Return buffer + offset instead of beginning of the number
This commit is contained in:
1 parent
6f271e511f
commit
e78bc42362
1 file changed
+1
-1
@@ -381,7 +381,7 @@ static unsigned char *print_number(const cJSON * const item, printbuffer * const
|
|||||||
|
|
||||||
output_buffer->offset += (size_t)length;
|
output_buffer->offset += (size_t)length;
|
||||||
|
|
||||||
return output_pointer;
|
return output_buffer->buffer + output_buffer->offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* parse 4 digit hexadecimal number */
|
/* parse 4 digit hexadecimal number */
|
||||||
|
|||||||
Reference in new issue
Block a user