diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-07-29 21:29:39 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-07-29 21:29:39 +0100 |
commit | 779f2b37aa5d99f07747a6c2dac9c56633a0f431 (patch) | |
tree | 7f1c92891e4ca70a08ed145cfbe2d22e8abf254c /lib/core | |
parent | 13875e56765c8197229170d06cef3e7cbc2421b0 (diff) | |
download | Nim-779f2b37aa5d99f07747a6c2dac9c56633a0f431.tar.gz |
Fixes typeinfo after PR #1408 broke it.
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/typeinfo.nim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index 93b90e120..57e11664b 100644 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -454,11 +454,11 @@ proc getBiggestUint*(x: TAny): uint64 = ## represent an unsigned integer. var t = skipRange(x.rawtype) case t.kind - of akUInt: result = uint64(cast[ptr uint](x.value)[]) - of akUInt8: result = uint64(cast[ptr uint8](x.value)[]) - of akUInt16: result = uint64(cast[ptr uint16](x.value)[]) - of akUInt32: result = uint64(cast[ptr uint32](x.value)[]) - of akUInt64: result = uint64(cast[ptr uint64](x.value)[]) + of tyUInt: result = uint64(cast[ptr uint](x.value)[]) + of tyUInt8: result = uint64(cast[ptr uint8](x.value)[]) + of tyUInt16: result = uint64(cast[ptr uint16](x.value)[]) + of tyUInt32: result = uint64(cast[ptr uint32](x.value)[]) + of tyUInt64: result = uint64(cast[ptr uint64](x.value)[]) else: assert false proc setBiggestUint*(x: TAny; y: uint64) = @@ -466,11 +466,11 @@ proc setBiggestUint*(x: TAny; y: uint64) = ## unsigned integer. var t = skipRange(x.rawtype) case t.kind: - of akUInt: result = cast[ptr uint](x.value)[] = uint(y) - of akUInt8: result = cast[ptr uint8](x.value)[] = uint8(y) - of akUInt16: result = cast[ptr uint16](x.value)[] = uint16(y) - of akUInt32: result = cast[ptr uint32](x.value)[] = uint32(y) - of akUInt64: result = cast[ptr uint64](x.value)[] = uint64(y) + of tyUInt: cast[ptr uint](x.value)[] = uint(y) + of tyUInt8: cast[ptr uint8](x.value)[] = uint8(y) + of tyUInt16: cast[ptr uint16](x.value)[] = uint16(y) + of tyUInt32: cast[ptr uint32](x.value)[] = uint32(y) + of tyUInt64: cast[ptr uint64](x.value)[] = uint64(y) else: assert false proc getChar*(x: TAny): char = |