Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid num_samples from becoming negative (FluidSynth#653)
For Soundfonts bigger 2GiB, num_samples becomes negative. When being passed to safe_fread() it's promoted to long long and when being passed to fread(), it's cast to size_t. Works fine in twos-complement, but still is not nice.
- Loading branch information