diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-01 13:35:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-01 13:35:30 +0200 |
commit | e6b95a3d6577b6f66bcaaab6f795483bfc9ab6ed (patch) | |
tree | 8f5c18bb68eb24ee7f86f54590079968d820f091 /libs/ardour/plugin_insert.cc | |
parent | 4727fa337d3313b5d65afa09c9d1015c88032afe (diff) |
fix a Wsigncompare and 2 -Wuninitialized
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index 502f581532..7aed4cfa0b 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -2254,14 +2254,14 @@ PluginInsert::set_state(const XMLNode& node, int version) } if (strncmp ((*i)->name ().c_str(), X_("InputMap-"), 9) == 0) { long pc = atol (&((*i)->name().c_str()[9])); - if (pc >=0 && pc <= get_count()) { + if (pc >= 0 && pc <= (long) get_count()) { _in_map[pc] = ChanMapping (**i); ++in_maps; } } if (strncmp ((*i)->name ().c_str(), X_("OutputMap-"), 10) == 0) { long pc = atol (&((*i)->name().c_str()[10])); - if (pc >=0 && pc <= get_count()) { + if (pc >= 0 && pc <= (long) get_count()) { _out_map[pc] = ChanMapping (**i); ++out_maps; } |