diff options
author | Carl Hetherington <carl@carlh.net> | 2010-04-22 01:38:47 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-04-22 01:38:47 +0000 |
commit | 5b4b2c04e522f8c71b23359519c19160c886c8b9 (patch) | |
tree | 6a262d9623c6ad206a01ab05636ce17555b41af3 /libs | |
parent | bc8a459dbec431db5489ef8826572616970062ca (diff) |
Fix compile warning.
git-svn-id: svn://localhost/ardour2/branches/3.0@6950 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/location.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 6aa2f8faed..155ef3667c 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -151,8 +151,10 @@ Location::set_end (nframes64_t e) int Location::set (nframes64_t start, nframes64_t end) { - set_start (start); - set_end (end); + int const s = set_start (start); + int const e = set_end (end); + + return (s == 0 && e == 0) ? 0 : -1; } int |