Fix some coverity-reported stuff.
[dcpomatic.git] / test / resampler_test.cc
index 1ef69b0c26bbb71f0851b15808c0ce1482ad0d9b..9247159a7065b1a46ecf06d49f74f8cfdbab6695 100644 (file)
@@ -33,7 +33,7 @@ resampler_test_one (int from, int to)
        int total_out = 0;
 
        /* 3 hours */
-       int64_t const N = from * 60 * 60 * 3;
+       int64_t const N = int64_t (from) * 60 * 60 * 3;
        
        for (int64_t i = 0; i < N; i += 1000) {
                shared_ptr<AudioBuffers> a (new AudioBuffers (1, 1000));