From 80c61db0cda63e565197abcbbc11b504c9a76c17 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Sat, 11 Dec 2010 15:09:47 +0000 Subject: Fix compiler warnings git-svn-id: svn://localhost/ardour2/branches/3.0@8246 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/uri_map.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/uri_map.cc') diff --git a/libs/ardour/uri_map.cc b/libs/ardour/uri_map.cc index 116236a8b6..9b5843a40e 100644 --- a/libs/ardour/uri_map.cc +++ b/libs/ardour/uri_map.cc @@ -61,7 +61,7 @@ URIMap::uri_to_id(const char* map, } else { if (_global_to_event.size() + 1 > UINT16_MAX) { PBD::error << "Event URI " << uri << " ID out of range." << endl; - return NULL; + return 0; } const uint16_t ev_id = _global_to_event.size() + 1; assert(_event_to_global.find(ev_id) == _event_to_global.end()); -- cgit v1.2.3