Closed
Bug 570257
Opened 15 years ago
Closed 15 years ago
warning "comparison between signed and unsigned integer expressions" at WebGLContextValidate.cpp:64
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
1.29 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
content/canvas/src/ was recently build-warning-free, but this new warning appeared recently (treated as error because I was building with WARNINGS_AS_ERRORS):
{
/builds/slave/tryserver-linux-debug/build/content/canvas/src/WebGLContextValidate.cpp: In member function ‘PRBool mozilla::WebGLContext::ValidateBuffers(PRUint32)’:
/builds/slave/tryserver-linux-debug/build/content/canvas/src/WebGLContextValidate.cpp:64: error: comparison between signed and unsigned integer expressions
}
http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1275693673.1275694686.23724.gz
Regression from bug 569984 -- looks like we just need a signed-->unsigned cast.
Assignee | ||
Updated•15 years ago
|
Whiteboard: [build_warning]
Assignee | ||
Comment 1•15 years ago
|
||
Assignee | ||
Comment 2•15 years ago
|
||
The fix...
- adds a WebGLuint() cast for the comparison
- changes %d to %u in the LogMessage() call, on the next line (since GLName is an unsigned value)
Attachment #449385 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 3•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•