diff options
author | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-24 12:10:01 +0000 |
---|---|---|
committer | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-24 12:10:01 +0000 |
commit | 143cb330b6c0d9301488badd35db4ce6f3e10b0a (patch) | |
tree | 5105b81e4284cf8003bc95d4ef4c84a39210ab2c /libs/ardour | |
parent | 45addca9eb60a92acda39c8f811d25daa0cfb216 (diff) |
fix some 64bit warnings
git-svn-id: svn://localhost/trunk/ardour2@206 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/audio_track.cc | 4 | ||||
-rw-r--r-- | libs/ardour/session.cc | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc index a706de712b..75f930bf8d 100644 --- a/libs/ardour/audio_track.cc +++ b/libs/ardour/audio_track.cc @@ -860,7 +860,7 @@ AudioTrack::freeze (InterThreadInfo& itt) uint32_t n = 1; - while (n < (ULONG_MAX-1)) { + while (n < (UINT_MAX-1)) { string candidate; @@ -875,7 +875,7 @@ AudioTrack::freeze (InterThreadInfo& itt) } - if (n == (ULONG_MAX-1)) { + if (n == (UINT_MAX-1)) { error << string_compose (X_("There Are too many frozen versions of playlist \"%1\"" " to create another one"), _freeze_record.playlist->name()) << endmsg; diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 058db6d250..021c2935d2 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1566,7 +1566,7 @@ Session::new_audio_track (int input_channels, int output_channels) } n++; - } while (n < (ULONG_MAX-1)); + } while (n < (UINT_MAX-1)); if (input_auto_connect & AutoConnectPhysical) { nphysical_in = n_physical_inputs; @@ -1673,7 +1673,7 @@ Session::new_audio_route (int input_channels, int output_channels) } n++; - } while (n < (ULONG_MAX-1)); + } while (n < (UINT_MAX-1)); try { bus = new Route (*this, bus_name, -1, -1, -1, -1); @@ -2153,7 +2153,7 @@ Session::new_region_name (string old) } - while (number < (ULONG_MAX-1)) { + while (number < (UINT_MAX-1)) { AudioRegionList::const_iterator i; string sbuf; @@ -2174,7 +2174,7 @@ Session::new_region_name (string old) } } - if (number != (ULONG_MAX-1)) { + if (number != (UINT_MAX-1)) { return buf; } |