mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
merge revision(s) 50305: [Backport #11065]
* ext/-test-/printf/printf.c (uint_to_str): renamed to get rid of conflict on cygwin. [ruby-core:68877] [Bug #11065] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@50625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e197429a76
commit
d15084fbcf
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun May 24 03:01:17 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/-test-/printf/printf.c (uint_to_str): renamed to get rid of
|
||||
conflict on cygwin. [ruby-core:68877] [Bug #11065]
|
||||
|
||||
Sun May 24 02:44:53 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm.c (vm_exec): check other events when RETURN is thrown.
|
||||
|
|
|
@ -20,7 +20,7 @@ printf_test_q(VALUE self, VALUE obj)
|
|||
}
|
||||
|
||||
static char *
|
||||
utoa(char *p, char *e, unsigned int x)
|
||||
uint_to_str(char *p, char *e, unsigned int x)
|
||||
{
|
||||
char *e0 = e;
|
||||
if (e <= p) return p;
|
||||
|
@ -71,12 +71,12 @@ printf_test_call(int argc, VALUE *argv, VALUE self)
|
|||
*p++ = '0';
|
||||
}
|
||||
if (!NIL_P(v = rb_hash_aref(opt, ID2SYM(rb_intern("width"))))) {
|
||||
p = utoa(p, format + sizeof(format), NUM2UINT(v));
|
||||
p = uint_to_str(p, format + sizeof(format), NUM2UINT(v));
|
||||
}
|
||||
if (!NIL_P(v = rb_hash_aref(opt, ID2SYM(rb_intern("prec"))))) {
|
||||
*p++ = '.';
|
||||
if (FIXNUM_P(v))
|
||||
p = utoa(p, format + sizeof(format), NUM2UINT(v));
|
||||
p = uint_to_str(p, format + sizeof(format), NUM2UINT(v));
|
||||
}
|
||||
}
|
||||
*p++ = cnv;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define RUBY_VERSION "2.2.3"
|
||||
#define RUBY_RELEASE_DATE "2015-05-24"
|
||||
#define RUBY_PATCHLEVEL 121
|
||||
#define RUBY_PATCHLEVEL 122
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2015
|
||||
#define RUBY_RELEASE_MONTH 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue