summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-06-11 16:49:56 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-11 16:49:56 +0200
commitc7e1c665a1d399272bef35395a6c364b9f98d64a (patch)
tree36e3be6be3f0e362ac0ccd09d57669ddb022d3f5 /lib/system
parent3d13103443f0fb4630e648ad7eabd2b40f0be52b (diff)
downloadNim-c7e1c665a1d399272bef35395a6c364b9f98d64a.tar.gz
[refactoring] refactor the compiler and stdlib to deprecation warnings (#11419)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/repr.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/repr.nim b/lib/system/repr.nim
index 67e625a8e..f276853cd 100644
--- a/lib/system/repr.nim
+++ b/lib/system/repr.nim
@@ -78,7 +78,7 @@ proc reprEnum(e: int, typ: PNimType): string {.compilerRtl.} =
   result = $e & " (invalid data!)"
 
 type
-  PByteArray = ptr array[0xffff, int8]
+  PByteArray = ptr array[0xffff, byte]
 
 proc addSetElem(result: var string, elem: int, typ: PNimType) {.benign.} =
   case typ.kind
@@ -104,7 +104,7 @@ proc reprSetAux(result: var string, p: pointer, typ: PNimType) =
   else:
     var a = cast[PByteArray](p)
     for i in 0 .. typ.size*8-1:
-      if (ze(a[i div 8]) and (1 shl (i mod 8))) != 0:
+      if (uint(a[i shr 3]) and (1'u shl (i and 7))) != 0:
         if elemCounter > 0: add result, ", "
         addSetElem(result, i+typ.node.len, typ.base)
         inc(elemCounter)