Fix msvc c4800: explicit cast to bool
[novacoin.git] / 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