Skip to content

Commit

Permalink
avoid aign conversion compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Jan 21, 2013
1 parent c315e19 commit d6587d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/input/sqlite/sqlite_datasource.cpp
Expand Up @@ -159,7 +159,7 @@ sqlite_datasource::sqlite_datasource(parameters const& params)
{
std::vector<std::string> 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;
s << "SQLite Plugin: only "
Expand Down

0 comments on commit d6587d7

Please sign in to comment.