diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-05-05 14:58:33 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-05 14:58:33 +0200 |
commit | 1aa359febba7c666c3a0108d6362ac1c51cfaf4e (patch) | |
tree | cb24acd9b09d95d933d40c262949b1363c1e22cf /compiler/vmgen.nim | |
parent | 805402b294c6cb3ee8e0f39245aa2d1366ae76e9 (diff) | |
download | Nim-1aa359febba7c666c3a0108d6362ac1c51cfaf4e.tar.gz |
warn about inconsistent spacing around binary operators; fixes #7582
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r-- | compiler/vmgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim index 0544dc311..f7d3237b8 100644 --- a/compiler/vmgen.nim +++ b/compiler/vmgen.nim @@ -790,7 +790,7 @@ proc genIntCast(c: PCtx; n: PNode; dest: var TDest) = elif src.kind in signedIntegers and dst.kind in unsignedIntegers: # cast signed to unsigned integer of same size # unsignedVal = (offset +% signedVal +% 1) and offset - let offset = (1 shl (src_size * 8)) - 1 + let offset = (1 shl (src_size * 8)) - 1 c.gABx(n, opcLdConst, tmp2, mkIntLit(offset)) c.gABx(n, opcLdConst, dest, mkIntLit(offset+1)) c.gABC(n, opcAddu, tmp3, tmp, dest) |