[前][次][番号順一覧][スレッド一覧]

ruby-changes:33649

From: nari <ko1@a...>
Date: Mon, 28 Apr 2014 17:46:42 +0900 (JST)
Subject: [ruby-changes:33649] nari:r45730 (trunk): * gc.c: Fix typos. These are undefined variables.

nari	2014-04-28 17:46:33 +0900 (Mon, 28 Apr 2014)

  New Revision: 45730

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45730

  Log:
    * gc.c: Fix typos. These are undefined variables.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45729)
+++ ChangeLog	(revision 45730)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Apr 28 17:40:15 2014  Narihiro Nakamura  <authornari@g...>
+
+	* gc.c: Fix typos. These are undefined variables.
+
 Sun Apr 27 19:39:42 2014  Tadayoshi Funaba  <tadf@d...>
 
 	* ext/date/date_strptime.c (date__strptime_internal): do not
Index: gc.c
===================================================================
--- gc.c	(revision 45729)
+++ gc.c	(revision 45730)
@@ -6229,7 +6229,7 @@ objspace_xrealloc(rb_objspace_t *objspac https://github.com/ruby/ruby/blob/trunk/gc.c#L6229
 #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, https://github.com/ruby/ruby/blob/trunk/gc.c#L6251
 {
 #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);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]