From 5be3a1a34de7dec2882d6aa424c8389805b9b9b0 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 13 Sep 2013 13:06:45 -0700 Subject: [PATCH] Fix UnsignedInteger::isZero --- src/beast/modules/beast_crypto/math/UnsignedInteger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beast/modules/beast_crypto/math/UnsignedInteger.h b/src/beast/modules/beast_crypto/math/UnsignedInteger.h index 04f32a720..024d5c2b2 100644 --- a/src/beast/modules/beast_crypto/math/UnsignedInteger.h +++ b/src/beast/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;