Fix msvc c4800: explicit cast to bool
authorsvost <svost@users.noreply.github.com>
Tue, 23 Feb 2016 07:46:17 +0000 (10:46 +0300)
committersvost <svost@users.noreply.github.com>
Tue, 23 Feb 2016 07:46:17 +0000 (10:46 +0300)
src/key.h

index 67c414e..a9ac6c7 100644 (file)
--- a/src/key.h
+++ b/src/key.h
@@ -203,7 +203,7 @@ public:
     // Calculate G*m + q
     bool ECMULGEN(const CBigNum &bnMultiplier, const CPoint &qPoint);
 
-    bool IsInfinity() { return EC_POINT_is_at_infinity(group, point); }
+    bool IsInfinity() { return EC_POINT_is_at_infinity(group, point) != 0; }
 };
 
 class CMalleablePubKey