From fb3b470ebec1b86af801ca68d14e80f06aff8adb Mon Sep 17 00:00:00 2001 From: ShutterQuick Date: Fri, 25 Jul 2014 14:21:26 +0200 Subject: [PATCH] m_sha1: Make possible to compile with non-C++11 compilers --- 2.0/m_sha1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.0/m_sha1.cpp b/2.0/m_sha1.cpp index 9a3e1739..c086f311 100644 --- a/2.0/m_sha1.cpp +++ b/2.0/m_sha1.cpp @@ -51,9 +51,9 @@ inline static uint32_t rol(uint32_t value, uint32_t bits) { return (value << bit /* blk0() and blk() perform the initial expand. */ /* I got the idea of expanding during the round function from SSLeay */ -static bool big_endian = htonl(1337) == 1337; inline static uint32_t blk0(CHAR64LONG16 &block, uint32_t i) { + static const bool big_endian = htonl(1337) == 1337; if (big_endian) return block.l[i]; else