Closed Bug 585295 Opened 15 years ago Closed 15 years ago

Broken GLContextProviderEGL.cpp compilation on mingw-w64

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86_64
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jacek, Unassigned)

References

Details

Attachments

(2 files)

Attached patch fix v1.0Splinter Review
A patch from bug 575469 broke compilation on mingw-w64 because it introduced pointer->int casts losing precision: printf_stderr("EGL Config: %d [0x%08x]", (int)cfg, (PRUint32)cfg); The attached patch fixes it by using "%p" format for pointers. While I was at this, I've also fixed warnings about comparing signed and unsigned integers in GLContext.h.
Attachment #463784 - Attachment is patch: true
Attachment #463784 - Flags: review?(vladimir)
Blocks: 575469
Comment on attachment 463784 [details] [diff] [review] fix v1.0 >+ printf_stderr("EGL Config: %p [%p]", cfg, cfg); No point in doing that, since it'll print the same value. Keep the first one as an int, please (doing whatever's needed to cast down a 64-bit pointer). [On X11, the config often matches a visual id, which is useful info to have.]
Attachment #463784 - Flags: review?(vladimir) → review+
Attached patch fix v1.1Splinter Review
Thanks for the review. The attached version prints the pointer with "%d" and a proper cast.
Attachment #464740 - Flags: approval2.0?
Attachment #464740 - Flags: approval2.0? → approval2.0+
Status: NEW → 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

Creator:
Created:
Updated:
Size: