summary refs log tree commit diff stats
path: root/compiler/vmdef.nim
diff options
context:
space:
mode:
authorParashurama <Rhagdamaziel@ymail.com>2017-08-03 10:58:45 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-08-03 10:58:45 +0200
commitf063943d5f9015b0222b5d3c3ff9322c47b5ec6f (patch)
tree00e2a6b4dcd8a4a34a583b1d17e666e5881a7160 /compiler/vmdef.nim
parent0755f902ddedab9427ac6930e8597114a4f69e71 (diff)
downloadNim-f063943d5f9015b0222b5d3c3ff9322c47b5ec6f.tar.gz
Vm fix zero extend proc ze/ze64 && toU32/toU16/toU8 (#5988)
* fixes ze/ze64 procs in VM.
* fixes toU8/toU16/toU32.
* add tests for ze/ze64 toU32/toU16/toU8 procs
Diffstat (limited to 'compiler/vmdef.nim')
-rw-r--r--compiler/vmdef.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim
index 5045f3f07..7e1309e0a 100644
--- a/compiler/vmdef.nim
+++ b/compiler/vmdef.nim
@@ -136,7 +136,8 @@ type
     opcNBindSym,
     opcSetType,   # dest.typ = types[Bx]
     opcTypeTrait,
-    opcMarshalLoad, opcMarshalStore
+    opcMarshalLoad, opcMarshalStore,
+    opcToNarrowInt
 
   TBlock* = object
     label*: PSym