Skip to content

Commit d2cf4be

Browse files
committed
merge revision(s) 16473:
* 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
1 parent 897483c commit d2cf4be

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Sun Jun 15 23:08:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
2+
3+
* sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0.
4+
15
Sun Jun 15 23:06:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
26

37
* process.c (rb_f_system): set last_status when status == -1 because

sprintf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ rb_f_sprintf(argc, argv)
743743
need = strlen(expr);
744744
if ((!isnan(fval) && fval < 0.0) || (flags & FPLUS))
745745
need++;
746+
else if (flags & FSPACE)
747+
need++;
746748
if ((flags & FWIDTH) && need < width)
747749
need = width;
748750

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 "2008-06-15"
33
#define RUBY_VERSION_CODE 185
44
#define RUBY_RELEASE_CODE 20080615
5-
#define RUBY_PATCHLEVEL 210
5+
#define RUBY_PATCHLEVEL 211
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy