summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-11 23:28:53 +0200
committerAraq <rumpf_a@web.de>2011-04-11 23:28:53 +0200
commit46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch)
treec96be792eceb1d189cdb5bcff6e1a06f9b51e76c /lib/system.nim
parent3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff)
downloadNim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz
p[] instead of p^
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim
index c786e8355..8fc4493dd 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1641,9 +1641,9 @@ when not defined(EcmaScript) and not defined(NimrodVM):
     var d: int
     var a = cast[TAddress](aa)
     case n.typ.size
-    of 1: d = ze(cast[ptr int8](a +% n.offset)^)
-    of 2: d = ze(cast[ptr int16](a +% n.offset)^)
-    of 4: d = int(cast[ptr int32](a +% n.offset)^)
+    of 1: d = ze(cast[ptr int8](a +% n.offset)[])
+    of 2: d = ze(cast[ptr int16](a +% n.offset)[])
+    of 4: d = int(cast[ptr int32](a +% n.offset)[])
     else: assert(false)
     return d