From 42ae24a6e86440d6e05faf81fb278a310aed71ef Mon Sep 17 00:00:00 2001 From: ngoto Date: Fri, 13 Dec 2013 15:44:13 +0000 Subject: [PATCH] * internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117, which cause compile error on Solaris. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ internal.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ecddcdc68c..898d2c4c4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 14 00:34:31 2013 Naohisa Goto + + * 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 * thread.c: (exec_recursive): use rb_catch_protect() instead of diff --git a/internal.h b/internal.h index 344963243a..d01f6cf6ec 100644 --- a/internal.h +++ b/internal.h @@ -466,7 +466,7 @@ void ruby_gc_set_params(int safe_level); #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