summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-12 08:43:38 +0200
committerAraq <rumpf_a@web.de>2012-07-12 08:43:38 +0200
commitdc8924e1a2467d15aa61a1ee01bc2b5b26d21eea (patch)
treebe0667fe05eaa99a13b5e8a7ad22c766bc519a46 /compiler
parent94013a4cff5c19ecef2dbd7a7bdcb9811c5cce4d (diff)
downloadNim-dc8924e1a2467d15aa61a1ee01bc2b5b26d21eea.tar.gz
fixes cast[int8] bug
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/ccgexprs.nim6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index 78a107bbb..f3d9b0876 100755
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -51,12 +51,6 @@ proc genLiteral(p: BProc, v: PNode, ty: PType): PRope =
     case skipTypes(ty, abstractVarRange).kind
     of tyChar, tyInt64, tyNil:
       result = intLiteral(v.intVal)
-    of tyInt8:
-      result = ropef("((NI8) $1)", [intLiteral(biggestInt(int8(v.intVal)))])
-    of tyInt16:
-      result = ropef("((NI16) $1)", [intLiteral(biggestInt(int16(v.intVal)))])
-    of tyInt32:
-      result = ropef("((NI32) $1)", [intLiteral(biggestInt(int32(v.intVal)))])
     of tyInt:
       if (v.intVal >= low(int32)) and (v.intVal <= high(int32)):
         result = int32Literal(int32(v.intVal))