1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

fixed some warnings in debug mode (GCC/Linux)

This commit is contained in:
andheh
2018-03-21 22:44:55 +01:00
committed by James Crook
parent 1cda717a14
commit b56059a77c
3 changed files with 4 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ void ReverseSamples(samplePtr dst, sampleFormat format,
samplePtr first = dst + start * size;
samplePtr last = dst + (start + len - 1) * size;
enum : size_t { fixedSize = SAMPLE_SIZE(floatSample) };
wxASSERT(size <= fixedSize);
wxASSERT(static_cast<size_t>(size) <= fixedSize);
char temp[fixedSize];
while (first < last) {
memcpy(temp, first, size);