diff options
author | Araq <rumpf_a@web.de> | 2018-12-05 09:43:34 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-05 09:43:59 +0100 |
commit | 24106ade8fee790fcfbab17d6c7825d79e05c7f3 (patch) | |
tree | 9ff02cf4f0bc3f3047b94802016239d8b037deae /lib/system.nim | |
parent | d21529649746e68fd6f3f955627eda3ee0017534 (diff) | |
download | Nim-24106ade8fee790fcfbab17d6c7825d79e05c7f3.tar.gz |
hotfix: discriminants can be of size 8 bytes [backport]
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index 0bb53d9df..ea767e27a 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3461,6 +3461,7 @@ when not defined(JS): #and not defined(nimscript): 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 8: d = int(cast[ptr int64](a +% n.offset)[]) else: sysAssert(false, "getDiscriminant: invalid n.typ.size") return d |