From 3986c31e3fa3a8b210a44998a4997975079dd0af Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Wed, 19 Jun 2024 09:31:23 -0500 Subject: [PATCH] Fix build error --- src/connection.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection.cc b/src/connection.cc index 35eadde..5021e73 100644 --- a/src/connection.cc +++ b/src/connection.cc @@ -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(info[0]).FromJust()); info.GetReturnValue().Set(table); } @@ -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(info[0]).FromJust()); info.GetReturnValue().Set(tablecol); }