Commit 38d4e8f0 by Konstantin Käfer

use unsigned ints for iteration

parent 49f42dcc
...@@ -357,7 +357,7 @@ void Database::TraceCallback(EV_P_ ev_async *w, int revents) { ...@@ -357,7 +357,7 @@ void Database::TraceCallback(EV_P_ ev_async *w, int revents) {
AsyncTrace* async = static_cast<AsyncTrace*>(w->data); AsyncTrace* async = static_cast<AsyncTrace*>(w->data);
std::vector<std::string> queries = async->get(); std::vector<std::string> queries = async->get();
for (int i = 0; i < queries.size(); i++) { for (unsigned int i = 0; i < queries.size(); i++) {
Local<Value> argv[] = { Local<Value> argv[] = {
String::NewSymbol("trace"), String::NewSymbol("trace"),
String::New(queries[i].c_str()) String::New(queries[i].c_str())
......
...@@ -90,7 +90,7 @@ public: ...@@ -90,7 +90,7 @@ public:
callback = Persistent<Function>::New(cb_); callback = Persistent<Function>::New(cb_);
} }
~Baton() { ~Baton() {
for (int i = 0; i < parameters.size(); i++) { for (unsigned int i = 0; i < parameters.size(); i++) {
Values::Field* field = parameters[i]; Values::Field* field = parameters[i];
DELETE_FIELD(field); DELETE_FIELD(field);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment