From 1ad8ff9b645e9bb53be1a0749dca8b3d4b22c093 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 13 Sep 2013 13:06:45 -0700 Subject: [PATCH] Fix UnsignedInteger::isZero --- modules/beast_crypto/math/UnsignedInteger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/beast_crypto/math/UnsignedInteger.h b/modules/beast_crypto/math/UnsignedInteger.h index 04f32a720..024d5c2b2 100644 --- a/modules/beast_crypto/math/UnsignedInteger.h +++ b/modules/beast_crypto/math/UnsignedInteger.h @@ -176,7 +176,7 @@ public: /** Determine if all bits are zero. */ bool isZero () const { - for (int i = 0; i < Bytes; ++i) + for (int i = 0; i < CalcCount; ++i) { if (m_values [i] != 0) return false;