mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (ruby_xmalloc): remove MALLOC_LIMIT to avoid frequent
garabage collection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3edb155cd1
commit
7881363731
6 changed files with 13 additions and 24 deletions
|
|
@ -1018,8 +1018,11 @@ cvt(value, ndigits, flags, sign, decpt, ch, length)
|
|||
if (value < 0) {
|
||||
value = -value;
|
||||
*sign = '-';
|
||||
} else
|
||||
*sign = '\000';
|
||||
} else if (value == 0.0 && 1.0/value < 0) {
|
||||
*sign = '-';
|
||||
} else {
|
||||
*sign = '\000';
|
||||
}
|
||||
digits = BSD__dtoa(value, mode, ndigits, decpt, &dsgn, &rve);
|
||||
if (flags & ALT) { /* Print trailing zeros */
|
||||
bp = digits + ndigits;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue