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

ruby-changes:32104

From: ngoto <ko1@a...>
Date: Sat, 14 Dec 2013 00:44:20 +0900 (JST)
Subject: [ruby-changes:32104] ngoto:r44183 (trunk): * internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117, which cause compile error on Solaris.

ngoto	2013-12-14 00:44:13 +0900 (Sat, 14 Dec 2013)

  New Revision: 44183

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

  Log:
    * internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117, which cause compile error on Solaris.

  Modified files:
    trunk/ChangeLog
    trunk/internal.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44182)
+++ ChangeLog	(revision 44183)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 14 00:34:31 2013  Naohisa Goto  <ngotogenome@g...>
+
+	* internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117,
+	  which cause compile error on Solaris.
+
 Sat Dec 14 00:22:16 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* thread.c: (exec_recursive): use rb_catch_protect() instead of
Index: internal.h
===================================================================
--- internal.h	(revision 44182)
+++ internal.h	(revision 44183)
@@ -466,7 +466,7 @@ void ruby_gc_set_params(int safe_level); https://github.com/ruby/ruby/blob/trunk/internal.h#L466
 #define SIZED_REALLOC_N(var,type,n,old_n) REALLOC_N(var, type, n)
 #else
 void *ruby_sized_xrealloc(void *ptr, size_t new_size, size_t old_size) RUBY_ATTR_ALLOC_SIZE((2));
-void *ruby_sized_xrealloc(void *ptr, size_t new_count, size_t element_size, size_t old_count) RUBY_ATTR_ALLOC_SIZE((2, 3));
+void *ruby_sized_xrealloc2(void *ptr, size_t new_count, size_t element_size, size_t old_count) RUBY_ATTR_ALLOC_SIZE((2, 3));
 void ruby_sized_xfree(void *x, size_t size);
 #define SIZED_REALLOC_N(var,type,n,old_n) ((var)=(type*)ruby_sized_xrealloc((char*)(var), (n) * sizeof(type), (old_n) * sizeof(type)))
 #endif

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

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