diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | internal.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Dec 14 00:34:31 2013 Naohisa Goto <ngotogenome@gmail.com> + + * 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@ruby-lang.org> * 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 |