Skip to content

Commit 6e248dd

Browse files
authored
Fix build error (#102)
1 parent d393405 commit 6e248dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connection.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ NAN_METHOD(Connection::Ftable) {
238238

239239
PGresult* res = self->lastResult;
240240

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

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

250250
PGresult* res = self->lastResult;
251251

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

254254
info.GetReturnValue().Set(tablecol);
255255
}

0 commit comments

Comments
 (0)