https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229548
Bug ID: 229548
Summary: src/sys/dev/ath/if_ath.c:2154: wierd expression ?
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
src/sys/dev/ath/if_ath.c:2154]: (error) Signed integer overflow for expression
'i<<i'.
Source code is
for (i = 0; i < 32; i++)
if (ah->ah_syncstate & (i << i))
Maybe better code
for (i = 0; i < 32; i++)
if (ah->ah_syncstate & (1 << i))
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"