Closed dwatteau closed 3 years ago
Clang reports this:
src/ScummRp/file.cpp:701:12: warning: cast from 'char *' to 'uint32 *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align] bufferd = (uint32 *)buffer; ^~~~~~~~~~~~~~~~ 1 warning generated.
Indeed, we should maybe use memcpy(), or just access to the buffer in a simple and portable way.
memcpy()
Fixed in ecff30b86c022aa60941a8f71f7e7bc26e96f492 by rewriting it with a much simpler loop, as suggested by Thomas.
Clang reports this:
Indeed, we should maybe use
memcpy()
, or just access to the buffer in a simple and portable way.