Skip to content

Commit 7826e49

Browse files
committed
Change return type of Cancel() to bool.
This should fix the following warning on windows: ..\src\binding.cc(117): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) Spotted in issue brianc#165.
1 parent 175d18d commit 7826e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binding.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class Connection : public ObjectWrap {
301301
return rv;
302302
}
303303

304-
int Cancel()
304+
bool Cancel()
305305
{
306306
PGcancel* pgCancel = PQgetCancel(connection_);
307307
char errbuf[256];

0 commit comments

Comments
 (0)