[flac-dev] question about src/test_seeking.c - seek_barrage()
Erik de Castro Lopo
mle+la at mega-nerd.com
Sun Jan 31 16:09:19 PST 2016
lvqcl wrote:
> seek_barrage() has variable n of type long int (which is 32bit usually).
Thats true on Windows, but on both 32 and 64 bit linux sizeof (long int)
is 8.
> Then we see something like
>
> n = (long int)total_samples;
>
> So, why n has type long int, and not FLAC__int64 or some other 64-bit type?
If I was writing FLAC from scratch now, I would not define any of these
FLAC_intXX types and just use the standard <stdint.h> types.
Since this `n` variable is not part of the public API, I would use int64_t.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the flac-dev
mailing list