From 7826e492b49e071e5bb7816e2a7b365b2832d036 Mon Sep 17 00:00:00 2001 From: booo Date: Fri, 3 Aug 2012 03:32:30 +0200 Subject: [PATCH] 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. --- src/binding.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/binding.cc b/src/binding.cc index b94c25aa..eb927bf9 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -301,7 +301,7 @@ protected: return rv; } - int Cancel() + bool Cancel() { PGcancel* pgCancel = PQgetCancel(connection_); char errbuf[256];