diff options
author | Araq <rumpf_a@web.de> | 2014-08-31 22:55:51 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-31 22:55:51 +0200 |
commit | 41c7cde61f021682899390c550671d93a9bca370 (patch) | |
tree | 12967d1de8c0d14a13566031a2d00fcbad4da088 /compiler | |
parent | d7d059a68695c10b7fe93f8f452d4aceb90857eb (diff) | |
download | Nim-41c7cde61f021682899390c550671d93a9bca370.tar.gz |
updated iup.nim; made tests green
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/vm.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index fe2b9c617..5ef4576ec 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1036,8 +1036,8 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = internalError(c.debug[pc], "too implement") of opcNarrowS: decodeB(rkInt) - let min = -(1 shl (rb-1)) - let max = (1 shl (rb-1))-1 + let min = -(1.BiggestInt shl (rb-1)) + let max = (1.BiggestInt shl (rb-1))-1 if regs[ra].intVal < min or regs[ra].intVal > max: stackTrace(c, tos, pc, errGenerated, msgKindToString(errUnhandledExceptionX) % "value out of range") |