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,10 +65,10 @@ unsigned strhash(const char *p)
|
||||||
while (*p != '\0')
|
while (*p != '\0')
|
||||||
{
|
{
|
||||||
h = (h << 4) + (unsigned)CHARADV(p);
|
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;
|
h ^= g;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return h;
|
return h;
|
||||||
|
@ -93,10 +93,10 @@ unsigned strhashi(const char *p)
|
||||||
h = (h << 4) + (unsigned)tolower(*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;
|
h ^= g;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return h;
|
return h;
|
||||||
|
|
|
@ -234,7 +234,7 @@ BuildLockMaskSequence(void)
|
||||||
* funny because we skip the case of all the
|
* funny because we skip the case of all the
|
||||||
* bits cleared.
|
* bits cleared.
|
||||||
*/
|
*/
|
||||||
run = (0x1 << bit-1); /* number of consecutive masks to set
|
run = (0x1 << (bit-1)); /* number of consecutive masks to set
|
||||||
bits in */
|
bits in */
|
||||||
bit_on = False; /* are we setting bits or not? */
|
bit_on = False; /* are we setting bits or not? */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue