summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-28 08:46:33 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-28 08:46:33 +0000
commit6ee891d6a7cb2278f43c5da3590939a548587682 (patch)
treeb00572d843aa9e0b863ae5c1b021052a14384f4f /gc.c
parenta3a6da5ec51c17390a6c8c6fe733a3a59eca4a69 (diff)
* gc.c: Fix typos. These are undefined variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 29e75a8e51..ae5b634e38 100644
--- a/gc.c
+++ b/gc.c
@@ -6229,7 +6229,7 @@ objspace_xrealloc(rb_objspace_t *objspace, void *ptr, size_t new_size, size_t ol
#if CALC_EXACT_MALLOC_SIZE
new_size += sizeof(size_t);
ptr = (size_t *)ptr - 1;
- oldsize = ((size_t *)ptr)[0];
+ old_size = ((size_t *)ptr)[0];
#endif
old_size = objspace_malloc_size(objspace, ptr, old_size);
@@ -6251,7 +6251,7 @@ objspace_xfree(rb_objspace_t *objspace, void *ptr, size_t old_size)
{
#if CALC_EXACT_MALLOC_SIZE
ptr = ((size_t *)ptr) - 1;
- oldsize = ((size_t*)ptr)[0];
+ old_size = ((size_t*)ptr)[0];
#endif
old_size = objspace_malloc_size(objspace, ptr, old_size);