1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vsnprintf.c (BSD_vfprintf): don't output floating point

when the precision is 0. [ruby-dev:42615]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-22 16:06:38 +00:00
parent 94e6c0c233
commit 18c0fc890c
3 changed files with 7 additions and 2 deletions

View file

@ -790,7 +790,7 @@ reswitch: switch (ch) {
#ifdef FLOATING_POINT
case 'a':
case 'A':
if (prec >= 0) {
if (prec > 0) {
flags |= ALT;
prec++;
}