summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-09 00:50:36 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-09 00:50:36 +0000
commit7021db80f3927faf596ee261e196656a7b5b38d9 (patch)
tree8137103d84fdb75c6bf711dd7a269f3737de0093 /ext/json
parentc8892037c7af9f4b52a692ea7db2f7062b6969e4 (diff)
* ext/json/generator/generator.c (fbuffer_inc_capa):
fix tha use of REALLOC_N. [ruby-dev:41227] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/generator/generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c
index 12e35d1..b25c94f 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;
}
}