~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progs/..., symm/...: Fix 32-bit right-shift idiom.
[catacomb]
/
symm
/
hash.h
diff --git
a/symm/hash.h
b/symm/hash.h
index
dc9ad02
..
eb3cd75
100644
(file)
--- a/
symm/hash.h
+++ b/
symm/hash.h
@@
-68,10
+68,10
@@
\
{ \
uint32 _l = U32(_bsz); \
\
{ \
uint32 _l = U32(_bsz); \
- uint32 _h = ((_bsz & ~
MASK32) >> 16) >> 16;
\
+ uint32 _h = ((_bsz & ~
(size_t)MASK32) >> 16) >> 16;
\
_bctx->nh += _h; \
_bctx->nl += _l; \
_bctx->nh += _h; \
_bctx->nl += _l; \
- if (_bctx->nl < _l || _bctx->nl & ~
MASK32)
\
+ if (_bctx->nl < _l || _bctx->nl & ~
(uint32)MASK32)
\
_bctx->nh++; \
} \
\
_bctx->nh++; \
} \
\