diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-12-11 15:09:47 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-12-11 15:09:47 +0000 |
commit | 80c61db0cda63e565197abcbbc11b504c9a76c17 (patch) | |
tree | 7c332032dcefa82fb92a080e1eee7807a548030f /libs/ardour/uri_map.cc | |
parent | 680a3f2b865348a3a4d9c54cccc5155016ff4a98 (diff) |
Fix compiler warnings
git-svn-id: svn://localhost/ardour2/branches/3.0@8246 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/uri_map.cc')
-rw-r--r-- | libs/ardour/uri_map.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |