ruby-changes:25166
From: knu <ko1@a...>
Date: Tue, 16 Oct 2012 17:56:57 +0900 (JST)
Subject: [ruby-changes:25166] knu:r37219 (ruby_1_8): Merge r35953 from ruby_1_8_7.
knu 2012-10-16 17:55:03 +0900 (Tue, 16 Oct 2012) New Revision: 37219 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37219 Log: Merge r35953 from ruby_1_8_7. * ext/bigdecimal/bigdecimal.c (VpMemAlloc): Fixes a bug reported by Drew Yao <ayao at apple.com> Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/bigdecimal/bigdecimal.c Index: ruby_1_8/ext/bigdecimal/bigdecimal.c =================================================================== --- ruby_1_8/ext/bigdecimal/bigdecimal.c (revision 37218) +++ ruby_1_8/ext/bigdecimal/bigdecimal.c (revision 37219) @@ -2061,11 +2061,11 @@ VP_EXPORT void * VpMemAlloc(U_LONG mb) { - void *p = xmalloc((unsigned int)mb); - if(!p) { - VpException(VP_EXCEPTION_MEMORY,"failed to allocate memory",1); + void *p = xmalloc(mb); + if (!p) { + VpException(VP_EXCEPTION_MEMORY, "failed to allocate memory", 1); } - memset(p,0,mb); + memset(p, 0, mb); #ifdef _DEBUG gnAlloc++; /* Count allocation call */ #endif /* _DEBUG */ Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 37218) +++ ruby_1_8/ChangeLog (revision 37219) @@ -1,3 +1,8 @@ +Tue Oct 16 16:51:08 2012 Akinori MUSHA <knu@i...> + + * ext/bigdecimal/bigdecimal.c (VpMemAlloc): Fixes a bug reported + by Drew Yao <ayao at apple.com> + Tue Oct 16 16:30:50 2012 Akinori MUSHA <knu@i...> * ext/openssl/ossl_x509store.c (ossl_x509store_initialize): initialize -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/