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 /lib/system/osalloc.nim | |
parent | 805402b294c6cb3ee8e0f39245aa2d1366ae76e9 (diff) | |
download | Nim-1aa359febba7c666c3a0108d6362ac1c51cfaf4e.tar.gz |
warn about inconsistent spacing around binary operators; fixes #7582
Diffstat (limited to 'lib/system/osalloc.nim')
-rw-r--r-- | lib/system/osalloc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim index 1ad4cf695..9609b6d39 100644 --- a/lib/system/osalloc.nim +++ b/lib/system/osalloc.nim @@ -58,7 +58,7 @@ when defined(emscripten): # Convert pointer to PageSize correct one. var new_pos = cast[ByteAddress](pos) +% (PageSize - (pos %% PageSize)) - if (new_pos-pos)< sizeof(EmscriptenMMapBlock): + if (new_pos-pos) < sizeof(EmscriptenMMapBlock): new_pos = new_pos +% PageSize result = cast[pointer](new_pos) |