medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a59b0e5edf6c4d67d2b375a10b874e76c789179e
parent 51ab9f917d5458d1847a69712b59cde974dc7a32
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Dec 28 12:32:31 +0200

MSVC warning

Diffstat:
stats.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stats.cc b/stats.cc @@ -49,7 +49,7 @@ void stats_record( Stats * stats, double x ) { } void stats_print( Stats * stats ) { - u32 num_samples = min( stats->num_records, ( u64 ) STATS_NUM_QUART_SAMPLES ); + u32 num_samples = checked_cast< u32 >( min( stats->num_records, u64( STATS_NUM_QUART_SAMPLES ) ) ); std::sort( stats->samples, stats->samples + num_samples ); printf( "n = %llu, mean = %f, stddev = %f, range = %f to %f, 25%% = %f, 75%% = %f",