Skip to content

Commit 3508ca2

Browse files
committed
Fixing compilation warnings on some 32 bit systems (CentOS)
1 parent 7244e25 commit 3508ca2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node-db

Submodule node-db updated 1 file

src/result.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ uint64_t node_db_mysql::Result::index() const throw(std::out_of_range&) {
147147
}
148148

149149
node_db_mysql::Result::Column* node_db_mysql::Result::column(uint16_t i) const throw(std::out_of_range&) {
150-
if (i < 0 || i >= this->totalColumns) {
150+
if (i >= this->totalColumns) {
151151
throw std::out_of_range("Wrong column index");
152152
}
153153
return this->columns[i];

0 commit comments

Comments
 (0)