Closed Bug 571175 Opened 14 years ago Closed 14 years ago

WebGLContextGL.cpp:878: warning: comparison between signed and unsigned integer expressions

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: vlad)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

When building mozilla-central: { > content/canvas/src/WebGLContextGL.cpp: In member function ‘virtual nsresult mozilla::WebGLContext::DrawElements(WebGLenum, WebGLsizei, WebGLenum, WebGLint)’: > content/canvas/src/WebGLContextGL.cpp:878: warning: comparison between signed and unsigned integer expressions }
Attachment #450301 - Flags: review?(vladimir)
Comment on attachment 450301 [details] [diff] [review] fix: cast byteOffset to be unsigned Note that if byteOffset were negative, we would have returned already. (there's a check for that at the beginning of this method) So it's safe to cast to be unsigned.
Attachment #450301 - Attachment description: fix → fix: cast byteOffset to be unsigned
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Hah, sorry, I fixed this locally (and I thought "man, dholbert's going to kill me")... I've got it as part of another patch, mind just letting me land that? Should be tomorrow.
sure. :)
Assignee: dholbert → vladimir
Attachment #450301 - Flags: review?(vladimir)
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: