diff options
author | Carl Hetherington <carl@carlh.net> | 2010-06-06 00:31:29 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-06-06 00:31:29 +0000 |
commit | 4065c59ed089a0fb63ed13cfe374fd34781f919d (patch) | |
tree | 8e9b9d0c2e5a670f7845d879da82110a72a00d27 /libs/ardour/playlist.cc | |
parent | 5f1e6f089f8ef852f581afac71dfaa34ca3a5236 (diff) |
Fix signedness error.
git-svn-id: svn://localhost/ardour2/branches/3.0@7234 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/playlist.cc')
-rw-r--r-- | libs/ardour/playlist.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 1d506dcee7..2044a2f142 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -17,6 +17,9 @@ */ +#define __STDC_LIMIT_MACROS +#include <stdint.h> + #include <set> #include <fstream> #include <algorithm> @@ -2392,7 +2395,7 @@ Playlist::relayer () int const divisions = 512; /* find the start and end positions of the regions on this playlist */ - framepos_t start = UINT_MAX; + framepos_t start = INT64_MAX; framepos_t end = 0; for (RegionList::const_iterator i = regions.begin(); i != regions.end(); ++i) { start = min (start, (*i)->position()); |