Displaying 1 result from an estimated 1 matches for "some_uint64_variable".
2014 Jul 02
2
uint64 -> double conversion
...ouble)(FLAC__int64)total_error_0 / (FLAC__double)data_len) / M_LN2 : 0.0);
...
#else
residual_bits_per_sample[0] = (FLAC__float)((total_error_0 > 0) ? log(M_LN2 * (FLAC__double)total_error_0 / (FLAC__double)data_len) / M_LN2 : 0.0);
...
#endif
IOW: use (FLAC__double)(FLAC__int64)some_uint64_variable for MSVC and MinGW
and (FLAC__double)some_uint64_variable for other compilers.
relevant patches:
http://git.xiph.org/?p=flac.git;a=commitdiff;h=59f4a995ddf0632241116bd69f6dc8c6f3ac790c
(april 2001)
http://git.xiph.org/?p=flac.git;a=commitdiff;h=40333b13c127bfb3c5f839fb59edbafa23d3ccbb
(this patc...