mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
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 #165.
This commit is contained in:
parent
175d18dce7
commit
7826e492b4
@ -301,7 +301,7 @@ protected:
|
||||
return rv;
|
||||
}
|
||||
|
||||
int Cancel()
|
||||
bool Cancel()
|
||||
{
|
||||
PGcancel* pgCancel = PQgetCancel(connection_);
|
||||
char errbuf[256];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user