[ardour-dev] AMD64 type error?
John Rigg
ardev at sound-man.co.uk
Mon Jun 5 01:25:20 PDT 2006
While debugging another problem I noticed that ardour-0.99.3
produces the following compiler warnings:
libs/ardour/audio_track.cc:868: warning: comparison is always true due to limited range of data type
libs/ardour/audio_track.cc:883: warning: comparison is always false due to limited range of data type
libs/ardour/session.cc:1680: warning: comparison is always true due to limited range of data type
libs/ardour/session.cc:1787: warning: comparison is always true due to limited range of data type
libs/ardour/session.cc:2270: warning: comparison is always true due to limited range of data type
libs/ardour/session.cc:2291: warning: comparison is always true due to limited range of data type
These are caused by comparisons of the following type:
uint32_t n = 1;
while (n < ULONG_MAX) {
On AMD64 ulong is 64 bits, not 32 as on x86. Changing it to UINT_MAX
would work on both platforms.
John
More information about the Ardour-Dev
mailing list