Mercurial > hg > svcore
comparison data/fileio/WavFileReader.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 | 48e4ffa9fb48 |
children | 457a1a619c5f 5b463c7727e5 |
comparison
equal
deleted
inserted
replaced
1088:5fab8e4f5f19 | 1110:1517d4c60e88 |
---|---|
145 if (sf_seek(m_file, start, SEEK_SET) < 0) { | 145 if (sf_seek(m_file, start, SEEK_SET) < 0) { |
146 return SampleBlock(); | 146 return SampleBlock(); |
147 } | 147 } |
148 | 148 |
149 sv_frame_t n = count * m_fileInfo.channels; | 149 sv_frame_t n = count * m_fileInfo.channels; |
150 m_buffer.resize(n); | 150 m_buffer.resize(size_t(n)); |
151 | 151 |
152 sf_count_t readCount = 0; | 152 sf_count_t readCount = 0; |
153 | 153 |
154 if ((readCount = sf_readf_float(m_file, m_buffer.data(), count)) < 0) { | 154 if ((readCount = sf_readf_float(m_file, m_buffer.data(), count)) < 0) { |
155 return SampleBlock(); | 155 return SampleBlock(); |
156 } | 156 } |
157 | 157 |
158 m_buffer.resize(readCount * m_fileInfo.channels); | 158 m_buffer.resize(size_t(readCount * m_fileInfo.channels)); |
159 | 159 |
160 m_lastStart = start; | 160 m_lastStart = start; |
161 m_lastCount = readCount; | 161 m_lastCount = readCount; |
162 } | 162 } |
163 | 163 |