Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147744875
D54057.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
879 B
Referenced Files
None
Subscribers
None
D54057.diff
View Options
diff --git a/lib/libc/stdbit/stdc_has_single_bit.c b/lib/libc/stdbit/stdc_has_single_bit.c
--- a/lib/libc/stdbit/stdc_has_single_bit.c
+++ b/lib/libc/stdbit/stdc_has_single_bit.c
@@ -10,29 +10,29 @@
bool
stdc_has_single_bit_uc(unsigned char x)
{
- return (x != 0 && (x & x - 1) == 0);
+ return (x != 0 && (x & (x - 1)) == 0);
}
bool
stdc_has_single_bit_us(unsigned short x)
{
- return (x != 0 && (x & x - 1) == 0);
+ return (x != 0 && (x & (x - 1)) == 0);
}
bool
stdc_has_single_bit_ui(unsigned int x)
{
- return (x != 0 && (x & x - 1) == 0);
+ return (x != 0 && (x & (x - 1)) == 0);
}
bool
stdc_has_single_bit_ul(unsigned long x)
{
- return (x != 0 && (x & x - 1) == 0);
+ return (x != 0 && (x & (x - 1)) == 0);
}
bool
stdc_has_single_bit_ull(unsigned long long x)
{
- return (x != 0 && (x & x - 1) == 0);
+ return (x != 0 && (x & (x - 1)) == 0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 8:49 AM (7 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29662245
Default Alt Text
D54057.diff (879 B)
Attached To
Mode
D54057: libc/stdc_has_single_bit.c: fix gcc warning (-Wparentheses)
Attached
Detach File
Event Timeline
Log In to Comment