Skip to content

Commit

Permalink
Fix build error (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc authored Jan 20, 2025
1 parent d393405 commit 6e248dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ NAN_METHOD(Connection::Ftable) {

PGresult* res = self->lastResult;

int table = PQftable(res, info[0]->Int32Value());
int table = PQftable(res, Nan::To<int32_t>(info[0]).FromJust());

info.GetReturnValue().Set(table);
}
Expand All @@ -249,7 +249,7 @@ NAN_METHOD(Connection::Ftablecol) {

PGresult* res = self->lastResult;

int tablecol = PQftablecol(res, info[0]->Int32Value());
int tablecol = PQftablecol(res, Nan::To<int32_t>(info[0]).FromJust());

info.GetReturnValue().Set(tablecol);
}
Expand Down

0 comments on commit 6e248dd

Please sign in to comment.