libmodplug
libmodplug copied to clipboard
avoid unaligned loads / stores
Closes https://github.com/Konstanty/libmodplug/pull/88
@ccawley2011, @AliceLR, @sagamusix: Please review.
Will review soon when I get a chance.
Re-opening after fixing accidental screw-up.
@AliceLR: Pushed f93b2554 to load_med.c.
And yes: The other places are crawling with similar issues.
Am I correct in thinking that this PR is meant to fix big endian compatibility as well?
Also, there's a Windows CE workaround in src/libmodplug/sndfile.h that can be removed now.
This seems about as fine as it can be without a much larger overhaul.
Other loaders will need similar changes, but yes it will be a much larger patch
Am I correct in thinking that this PR is meant to fix big endian compatibility as well?
Yes (even though the comments in there say that it is big-endian-fixed)
Also, there's a Windows CE workaround in
src/libmodplug/sndfile.hthat can be removed now.
Looks like it
Can we get this, #88, and #92 in please for portability? Does anyone other than @Konstanty have merge access?
Can we get this, #88, and #92 in please for portability?
This patch fully replaces #88 I think, but otherwise yes, these ought to be merged ASAP.
Does anyone other than @Konstanty have merge access?
I think only @Konstanty can merge.