summary refs log tree commit diff stats
path: root/lib/system/repr.nim
diff options
context:
space:
mode:
authorMichał Zieliński <michal@zielinscy.org.pl>2016-01-16 17:06:03 +0100
committerMichał Zieliński <michal@zielinscy.org.pl>2016-01-16 17:06:03 +0100
commit26f2bb0eabb030df8276f7ec1566b56f9b410db6 (patch)
tree88f0a4bcf792175de848a769f8c4e7cc3a4a0fa0 /lib/system/repr.nim
parenteb1bedc3c26967b12b07a84621e3f2ce3fb65dd8 (diff)
downloadNim-26f2bb0eabb030df8276f7ec1566b56f9b410db6.tar.gz
add support for uint32 and uint64 in repr
Diffstat (limited to 'lib/system/repr.nim')
-rw-r--r--lib/system/repr.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/system/repr.nim b/lib/system/repr.nim
index 1f81a0813..986994203 100644
--- a/lib/system/repr.nim
+++ b/lib/system/repr.nim
@@ -259,8 +259,10 @@ when not defined(useNimRtl):
     of tyInt16: add result, $int(cast[ptr int16](p)[])
     of tyInt32: add result, $int(cast[ptr int32](p)[])
     of tyInt64: add result, $(cast[ptr int64](p)[])
-    of tyUInt8: add result, $ze(cast[ptr int8](p)[])
-    of tyUInt16: add result, $ze(cast[ptr int16](p)[])
+    of tyUInt8: add result, $(cast[ptr uint8](p)[])
+    of tyUInt16: add result, $(cast[ptr uint16](p)[])
+    of tyUInt32: add result, $(cast[ptr uint32](p)[])
+    of tyUInt64: add result, $(cast[ptr uint64](p)[])
 
     of tyFloat: add result, $(cast[ptr float](p)[])
     of tyFloat32: add result, $(cast[ptr float32](p)[])