Closed Bug 1377605 Opened 7 years ago Closed 7 years ago

mingw errors on signed vs unsigned comparison

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

(Whiteboard: [tor])

Attachments

(1 file)

> /home/worker/workspace/build/src/mozglue/misc/StackWalk.cpp:589:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
>    INFO -         if (ret == -1) {

Here ret is a DWORD, the result of SuspendThread(), whose error return is defined as `(DWORD) -1`.

Cast to DWORD to prevent the error.
Comment on attachment 8882746 [details]
Bug 1377605 Cast -1 to DWORD to correctly match the error return value given by SuspendThread

https://reviewboard.mozilla.org/r/153856/#review159936
Attachment #8882746 - Flags: review?(aklotz) → review+
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4cc4de1e5897
Cast -1 to DWORD to correctly match the error return value given by SuspendThread r=aklotz
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/4cc4de1e5897
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
No longer blocks: 1330608
Blocks: 1394433
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: