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:
booo 2012-08-03 03:32:30 +02:00
parent 175d18dce7
commit 7826e492b4

View File

@ -301,7 +301,7 @@ protected:
return rv;
}
int Cancel()
bool Cancel()
{
PGcancel* pgCancel = PQgetCancel(connection_);
char errbuf[256];