From 5b4b2c04e522f8c71b23359519c19160c886c8b9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 22 Apr 2010 01:38:47 +0000 Subject: [PATCH] Fix compile warning. git-svn-id: svn://localhost/ardour2/branches/3.0@6950 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/location.cc | 6 ++++-- 1 file 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