diff data/fileio/CodedAudioFileReader.cpp @ 1110:1517d4c60e88

Fix a number of warnings in the 32-bit build
author Chris Cannam
date Wed, 01 Jul 2015 15:53:54 +0100
parents e603b44510c3
children 457a1a619c5f 5b463c7727e5
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp	Fri Jun 12 12:41:19 2015 +0100
+++ b/data/fileio/CodedAudioFileReader.cpp	Wed Jul 01 15:53:54 2015 +0100
@@ -439,15 +439,15 @@
         sv_frame_t i = 0;
         sv_frame_t n = count * m_channelCount;
 
-        frames.resize(n);
+        frames.resize(size_t(n));
 
         m_dataLock.lockForRead();
         while (i < n && in_range_for(m_data, idx)) {
-            frames[i++] = m_data[idx++];
+            frames[size_t(i++)] = m_data[size_t(idx++)];
         }
         m_dataLock.unlock();
 
-        frames.resize(i);
+        frames.resize(size_t(i));
     }
     }