Merge branch 'devel' of https://github.com/Araq/Nimrod into devel

This commit is contained in:
Araq 2014-04-21 00:07:40 +02:00
commit 2c97242739
13 changed files with 369 additions and 59 deletions

View file

@ -252,10 +252,8 @@ proc nimIntToStr(x: int): string {.compilerRtl.} =
proc nimFloatToStr(x: float): string {.compilerproc.} =
var buf: array [0..59, char]
c_sprintf(buf, "%#.f", x)
result = $buf
if result[len(result)-1] == '.':
result.add("0")
c_sprintf(buf, "%#.16e", x)
return $buf
proc nimInt64ToStr(x: int64): string {.compilerRtl.} =
result = newString(sizeof(x)*4)