We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
char buffer[128]; Uint16 good = SDLNet_Read16(buff+2); Uint16 wrong = SDLNet_Read16(buff+3);
when not aligned, then they use invalid bytes
The text was updated successfully, but these errors were encountered:
compiling with -DSDL_DATA_ALIGNED=1 does work, but this is a workaround a proper fix is needed
Sorry, something went wrong.
Is this something that affects SDL2_net natively as well, or is this bug specific to the Emscripten port?
Emscripten port only i think
from SDL_net.h
/* Warning, some systems have data access alignment restrictions */ #if defined(sparc) || defined(mips) || defined(__arm__) #define SDL_DATA_ALIGNED 1 #endif #ifndef SDL_DATA_ALIGNED #define SDL_DATA_ALIGNED 0 #endif
No branches or pull requests
when not aligned, then they use invalid bytes
The text was updated successfully, but these errors were encountered: