Skip to content
Snippets Groups Projects
Commit 482a44cb authored by murgatroid99's avatar murgatroid99
Browse files

Fixed incorrect functional change

parent 247bb9eb
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ static void json_writer_output_check(void* userdata, size_t needed) {
if (state->free_space >= needed) return;
needed -= state->free_space;
/* Round up by 256 bytes. */
needed = (needed + 0xff) % 0x100;
needed = (needed + 0xff) & ~0xffU;
state->output = gpr_realloc(state->output, state->allocated + needed);
state->free_space += needed;
state->allocated += needed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment