[ardour-dev] potential problem on 64bit?
gerard van dongen
gml at xs4all.nl
Sat Jun 4 06:28:06 PDT 2005
On Sat, 04 Jun 2005 15:04:54 +0200, Joern Nettingsmeier
<nettings at folkwang-hochschule.de> wrote:
> hi everyone!
> libs/ardour/audio_track.cc:807: warning: comparison is always true due
> to limited range of data type
> libs/ardour/audio_track.cc:822: warning: comparison is always false due
> to limited range of data type
>
> the code says:
>
> uint32_t n = 1
> ...
> while (n < ULONG_MAX) {
> ...
> ++n;
> }
>
>
> is this supposed to be correct on x86-64 ?
>
>
No.
What will happen is that if you have the max for 32bit uints number of
frozen tracks, ardour will wrap around and replace your first frozen
version with the new version, instead of giving an error message. As far
as I understand the code.
Unlikely, but you crazy 64bit folks may want to do more than 0xFFFFFFFF
frozen versions of the same track.
G
More information about the Ardour-Dev
mailing list