mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a3a6da5ec5
commit
6ee891d6a7
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Apr 28 17:40:15 2014 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c: Fix typos. These are undefined variables.
|
||||
|
||||
Sun Apr 27 19:39:42 2014 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_strptime.c (date__strptime_internal): do not
|
||||
|
|
4
gc.c
4
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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue