Skip to content

Commit 15fbb87

Browse files
committed
merge revision(s) 30993:
* ext/bigdecimal/bigdecimal.c (VpMemAlloc): Fixes a bug reported by Drew Yao <ayao at apple.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@35953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent d18b653 commit 15fbb87

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Thu Jun 7 19:00:35 2012 Kenta Murata <mrkn@mrkn.jp>
2+
3+
* ext/bigdecimal/bigdecimal.c (VpMemAlloc): Fixes a bug reported
4+
by Drew Yao <ayao at apple.com>
5+
16
Wed Jun 6 15:09:00 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* eval.c (rb_thread_join), ext/thread/thread.c (wake_one): adjusts

ext/bigdecimal/bigdecimal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,11 +2032,11 @@ static int gnAlloc=0; /* Memory allocation counter */
20322032
VP_EXPORT void *
20332033
VpMemAlloc(U_LONG mb)
20342034
{
2035-
void *p = xmalloc((unsigned int)mb);
2036-
if(!p) {
2037-
VpException(VP_EXCEPTION_MEMORY,"failed to allocate memory",1);
2035+
void *p = xmalloc(mb);
2036+
if (!p) {
2037+
VpException(VP_EXCEPTION_MEMORY, "failed to allocate memory", 1);
20382038
}
2039-
memset(p,0,mb);
2039+
memset(p, 0, mb);
20402040
#ifdef _DEBUG
20412041
gnAlloc++; /* Count allocation call */
20422042
#endif /* _DEBUG */

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#define RUBY_VERSION "1.8.7"
2-
#define RUBY_RELEASE_DATE "2012-06-06"
2+
#define RUBY_RELEASE_DATE "2012-06-07"
33
#define RUBY_VERSION_CODE 187
4-
#define RUBY_RELEASE_CODE 20120606
5-
#define RUBY_PATCHLEVEL 366
4+
#define RUBY_RELEASE_CODE 20120607
5+
#define RUBY_PATCHLEVEL 367
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8
99
#define RUBY_VERSION_TEENY 7
1010
#define RUBY_RELEASE_YEAR 2012
1111
#define RUBY_RELEASE_MONTH 6
12-
#define RUBY_RELEASE_DAY 6
12+
#define RUBY_RELEASE_DAY 7
1313

1414
#ifdef RUBY_EXTERN
1515
RUBY_EXTERN const char ruby_version[];

0 commit comments

Comments
 (0)