Skip to content

Commit

Permalink
merge revision(s) 16473:
Browse files Browse the repository at this point in the history
	* sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 15, 2008
1 parent 897483c commit d2cf4be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
Sun Jun 15 23:08:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>

* sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0.

Sun Jun 15 23:06:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>

* process.c (rb_f_system): set last_status when status == -1 because
Expand Down
2 changes: 2 additions & 0 deletions sprintf.c
Expand Up @@ -743,6 +743,8 @@ rb_f_sprintf(argc, argv)
need = strlen(expr);
if ((!isnan(fval) && fval < 0.0) || (flags & FPLUS))
need++;
else if (flags & FSPACE)
need++;
if ((flags & FWIDTH) && need < width)
need = width;

Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-15"
#define RUBY_VERSION_CODE 185
#define RUBY_RELEASE_CODE 20080615
#define RUBY_PATCHLEVEL 210
#define RUBY_PATCHLEVEL 211

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit d2cf4be

Please sign in to comment.