Skip to content

Commit aa98314

Browse files
committed
merge revision(s) 20581:
* pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'. just ignores '*' in these cases. [ruby-dev:37289] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@22448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent d7f2704 commit aa98314

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Thu Feb 19 17:52:42 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
2+
3+
* pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'.
4+
just ignores '*' in these cases.
5+
[ruby-dev:37289]
6+
17
Thu Feb 19 17:24:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
28

39
* pack.c (pack_pack): fixed length for odd length string.

pack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ pack_pack(ary, fmt)
494494
}
495495
}
496496
if (*p == '*') { /* set data length */
497-
len = strchr("@Xxu", type) ? 0 : items;
497+
len = strchr("@Xxu", type) ? 0
498+
: strchr("PMm", type) ? 1
499+
: items;
498500
p++;
499501
}
500502
else if (ISDIGIT(*p)) {

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2009-02-19"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20090219
5-
#define RUBY_PATCHLEVEL 342
5+
#define RUBY_PATCHLEVEL 343
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)