Closed Bug 934779 Opened 12 years ago Closed 12 years ago

Fix a few more widget/windows warnings

Categories

(Core :: Widget: Win32, defect)

All
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Fixing a few more windows widget build warnings: { widget/windows/TaskbarWindowPreview.cpp(157) : warning C4018: '<=' : signed/unsigned mismatch widget/windows/nsClipboard.cpp(732) : warning C4018: '>' : signed/unsigned mismatch }
Attached patch 934779-fix.patchSplinter Review
Attachment #827134 - Flags: review?(jmathies)
For the first hunk: note that nsTaskbarProgressState is typedeffed to 'long', which is why we warn about it being compared to the (unsigned) result of ArraySize(). For the second hunk: outDataLen is a uint32_t*, and endOfData is an int32_t but is known-nonnegative when we get to the comparison, due to the checks on it above in the patch's contextual code (for endOfData < -1, and endOfData == -1).
Attachment #827134 - Flags: review?(jmathies) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: