Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SafeFile: do endian-swap on float tag values
There are comments noting that writing raw float values may not be endian-correct and indeed it is not. WX does not provide functions for endian-swapping floats, but since amule explicitly uses exclusively single-precision (32-bit) floats, just cast it into a uint32_t for the swapping. This is a no-op on little-endian.
- Loading branch information