diff options
Diffstat (limited to 'ext/json/generator/generator.c')
-rw-r--r-- | ext/json/generator/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c index 12e35d10e1..b25c94f8e9 100644 --- a/ext/json/generator/generator.c +++ b/ext/json/generator/generator.c @@ -339,7 +339,7 @@ static void fbuffer_inc_capa(FBuffer *fb, unsigned int requested) for (required = fb->capa; requested > required - fb->len; required <<= 1); if (required > fb->capa) { - fb->ptr = (char *) REALLOC_N((long*) fb->ptr, char, required); + REALLOC_N(fb->ptr, char, required); fb->capa = required; } } |