From d4d2490bf3d37f397da11a93d357cc910e136307 Mon Sep 17 00:00:00 2001 From: svost Date: Tue, 23 Feb 2016 10:46:17 +0300 Subject: [PATCH] Fix msvc c4800: explicit cast to bool --- src/key.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/key.h b/src/key.h index 67c414e..a9ac6c7 100644 --- 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 -- 1.7.1