You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug in page:html5.h (EMSCRIPTEN_WEBGL_CONTEXT_HANDLE) #20993
The html5.h documentation specifies that EMSCRIPTEN_WEBGL_CONTEXT_HANDLE is a typedef to an int but it was changed to intptr_trecently.
I noticed this because I ran into a printf("%d", contextHandle) formatting error in my application that hadn't changed. (Error due to my usage of -Werror=format.)
error: format specifies type 'int' but the argument has type 'EMSCRIPTEN_WEBGL_CONTEXT_HANDLE' (aka 'long') [-Werror,-Wformat]
long and int are both 4 bytes in the build but requires a different printf format specifier. (I fixed my application and it's not really a big deal.)
I don't know if the API change matters (should it continue to use int for wasm32?) or if just the documentation should be updated.
Activity
Update docs for EMSCRIPTEN_WEBGL_CONTEXT_HANDLE. NFC
Update docs for EMSCRIPTEN_WEBGL_CONTEXT_HANDLE. NFC
Update docs for EMSCRIPTEN_WEBGL_CONTEXT_HANDLE. NFC (#20995)