1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 09:31:15 +02:00

Fixes for clang build with 64 bit unsigned long

This commit is contained in:
Paul Licameli
2017-03-30 10:46:44 -04:00
parent 82f909fe31
commit 1a86819b4b
2 changed files with 4 additions and 2 deletions

View File

@@ -70,7 +70,9 @@ public:
sampleCount ( int v ) : value { v } {}
sampleCount ( unsigned v ) : value { v } {}
sampleCount ( long v ) : value { v } {}
sampleCount ( unsigned long v ) : value { v } {}
// unsigned long is 64 bit on some platforms. Let it narrow.
sampleCount ( unsigned long v ) : value ( v ) {}
// Beware implicit conversions from floating point values!
// Otherwise the meaning of binary operators with sampleCount change