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)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

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.
Whiteboard: [build_warning]
Attached patch fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #449385 - Flags: review?(vladimir)
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)
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.

Attachment

General

Created:
Updated:
Size: