Closed Bug 576556 Opened 15 years ago Closed 15 years ago

uscan.c:383: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~'

Categories

(Core :: Internationalization, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

When building with GCC 4.4, I get: { intl/uconv/util/uscan.c: In function 'uCheckAndScanAlways2ByteGR128': intl/uconv/util/uscan.c:383: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' } The code (which hasn't changed since 2002) is: > 381 if(inbuflen < 2) /* will lead to NS_OK_UDEC_MOREINPUT */ > 382 return PR_FALSE; > 383 else if (! in[1] & 0x80) /* 2nd byte range check */ Filing this bug on adding the suggested parens to fix the warning.
Assignee: smontagu → dholbert
Attachment #455706 - Flags: review?(smontagu)
Status: NEW → ASSIGNED
Attachment #455706 - Flags: review?(smontagu) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Depends on: 658952
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: