avoid aign conversion compiler warnings

This commit is contained in:
Dane Springmeyer 2013-01-21 14:13:24 -08:00
parent c315e192b7
commit d6587d791d

View file

@ -159,7 +159,7 @@ sqlite_datasource::sqlite_datasource(parameters const& params)
{ {
std::vector<std::string> tables; std::vector<std::string> tables;
sqlite_utils::get_tables(dataset_,tables); sqlite_utils::get_tables(dataset_,tables);
if (*table_by_index >= tables.size()) if (*table_by_index < 0 || *table_by_index >= static_cast<int>(tables.size()))
{ {
std::ostringstream s; std::ostringstream s;
s << "SQLite Plugin: only " s << "SQLite Plugin: only "