diff --git a/ChangeLog b/ChangeLog index 14afc55512..9aefa55fe9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 28 17:40:15 2014 Narihiro Nakamura + + * gc.c: Fix typos. These are undefined variables. + Sun Apr 27 19:39:42 2014 Tadayoshi Funaba * ext/date/date_strptime.c (date__strptime_internal): do not 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);