diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-28 08:46:33 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-28 08:46:33 +0000 |
commit | 6ee891d6a7cb2278f43c5da3590939a548587682 (patch) | |
tree | b00572d843aa9e0b863ae5c1b021052a14384f4f /gc.c | |
parent | a3a6da5ec51c17390a6c8c6fe733a3a59eca4a69 (diff) | |
download | ruby-6ee891d6a7cb2278f43c5da3590939a548587682.tar.gz |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |