Skip to content

Commit

Permalink
m_sha1: Make possible to compile with non-C++11 compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
ShutterQuick committed Jul 25, 2014
1 parent a29049e commit fb3b470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2.0/m_sha1.cpp
Expand Up @@ -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
Expand Down

0 comments on commit fb3b470

Please sign in to comment.