diff options
author | Araq <rumpf_a@web.de> | 2015-07-01 00:58:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-07-01 02:15:20 +0200 |
commit | cc57a0430bd1aeedc9b58a9e0e5fe50d108bf256 (patch) | |
tree | fdbc19788301ea0592854b78b3084946549e1291 /compiler/vm.nim | |
parent | 8e0f9bacb75504c3d223f8365b889e62846f9563 (diff) | |
download | Nim-cc57a0430bd1aeedc9b58a9e0e5fe50d108bf256.tar.gz |
fixes #3028
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r-- | compiler/vm.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index 23fd6c8b1..a8972f420 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -351,7 +351,7 @@ proc opConv*(dest: var TFullReg, src: TFullReg, desttyp, srctyp: PType): bool = myreset(dest); dest.kind = rkFloat case skipTypes(srctyp, abstractRange).kind of tyInt..tyInt64, tyUInt..tyUInt64, tyEnum, tyBool, tyChar: - dest.floatVal = toFloat(src.intVal.int) + dest.floatVal = toBiggestFloat(src.intVal) else: dest.floatVal = src.floatVal else: |