diff options
author | Reimer Behrends <behrends@gmail.com> | 2015-11-11 14:19:09 +0100 |
---|---|---|
committer | Reimer Behrends <behrends@gmail.com> | 2015-11-11 14:19:09 +0100 |
commit | 67e62302b4791f68830c32e63b2cee0842e6882f (patch) | |
tree | d910cba03320f0903b4c306647e58d7556e39279 /compiler/writetracking.nim | |
parent | f9ad735e55d45d6a3ed7e9e7da7abd31065f99ac (diff) | |
download | Nim-67e62302b4791f68830c32e63b2cee0842e6882f.tar.gz |
Avoid signed shifts and bit operations for sets.
Set operations used "1<<n" style shifts, which led to undefined behavior if the signed shift overflowed. Similarly, the right-hand side of the operator sometimes used a mix of signed and unsigned integers that were combined with "&". This patch attempts to provide a consistent implementation that uses unsigned integers everywhere.
Diffstat (limited to 'compiler/writetracking.nim')
0 files changed, 0 insertions, 0 deletions