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)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: vlad)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
1.37 KB,
patch
|
Details | Diff | Splinter Review |
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
}
Reporter | ||
Comment 1•14 years ago
|
||
Attachment #450301 -
Flags: review?(vladimir)
Reporter | ||
Comment 2•14 years ago
|
||
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
Reporter | ||
Updated•14 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•14 years ago
|
||
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.
Reporter | ||
Updated•14 years ago
|
Attachment #450301 -
Flags: review?(vladimir)
Assignee | ||
Comment 5•14 years ago
|
||
Fixed as part of:
http://hg.mozilla.org/mozilla-central/rev/7b15545cf9aa
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.
Description
•