mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix some shift-op-parentheses warnings
This commit is contained in:
parent
d470302354
commit
24a2f05138
2 changed files with 7 additions and 7 deletions
|
@ -65,9 +65,9 @@ unsigned strhash(const char *p)
|
|||
while (*p != '\0')
|
||||
{
|
||||
h = (h << 4) + (unsigned)CHARADV(p);
|
||||
if (g = h & ((unsigned)0xF << BITS(unsigned) - 4))
|
||||
if ((g = h) & ((unsigned)0xF << (BITS(unsigned) - 4)))
|
||||
{
|
||||
h ^= g >> BITS(unsigned) - 4;
|
||||
h ^= g >> (BITS(unsigned) - 4);
|
||||
h ^= g;
|
||||
}
|
||||
}
|
||||
|
@ -93,9 +93,9 @@ unsigned strhashi(const char *p)
|
|||
h = (h << 4) + (unsigned)tolower(*p++);
|
||||
}
|
||||
|
||||
if (g = h & ((unsigned)0xF << BITS(unsigned) - 4))
|
||||
if ((g = h) & ((unsigned)0xF << (BITS(unsigned) - 4)))
|
||||
{
|
||||
h ^= g >> BITS(unsigned) - 4;
|
||||
h ^= g >> (BITS(unsigned) - 4);
|
||||
h ^= g;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -234,7 +234,7 @@ BuildLockMaskSequence(void)
|
|||
* funny because we skip the case of all the
|
||||
* bits cleared.
|
||||
*/
|
||||
run = (0x1 << bit-1); /* number of consecutive masks to set
|
||||
run = (0x1 << (bit-1)); /* number of consecutive masks to set
|
||||
bits in */
|
||||
bit_on = False; /* are we setting bits or not? */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue