obj/media/mtransport/build/dtlsidentity.cpp:44:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

RESOLVED FIXED in mozilla21

Status

()

defect
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

(Blocks 1 bug)

Trunk
mozilla21
x86_64
Linux
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [WebRTC] [blocking-webrtc-][qa-])

Attachments

(1 attachment)

{
obj/media/mtransport/build/dtlsidentity.cpp:44:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
}

This is for a loop iterating up to sizeof(something), w/ a signed loop variable.

We should use size_t for the loop variable, to match the type of sizeof.
Posted patch fix v1Splinter Review
Attachment #707900 - Flags: review?(ekr)
Summary: obj/media/mtransport/build/dtlsidentity.cpp:44:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare → obj/media/mtransport/build/dtlsidentity.cpp:44:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Blocks: 836570
Whiteboard: [WebRTC] [blocking-webrtc-]
Comment on attachment 707900 [details] [diff] [review]
fix v1

Review of attachment 707900 [details] [diff] [review]:
-----------------------------------------------------------------

lgtm
Attachment #707900 - Flags: review?(ekr) → review+
https://hg.mozilla.org/mozilla-central/rev/92542cbceb07
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Whiteboard: [WebRTC] [blocking-webrtc-] → [WebRTC] [blocking-webrtc-][qa]
Whiteboard: [WebRTC] [blocking-webrtc-][qa] → [WebRTC] [blocking-webrtc-][qa-]
You need to log in before you can comment on or make changes to this bug.