-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
The html5.h documentation specifies that EMSCRIPTEN_WEBGL_CONTEXT_HANDLE is a typedef to an int but it was changed to intptr_t recently.
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.
URL: ../../docs/api_reference/html5.h
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels