From b474de4a54c9b1d4d863971e40b807588d554436 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Aug 2012 22:48:35 +0300 Subject: replace defines to consts. --- src/utils/sha256.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp index a56f6ec9a..efc3e285e 100644 --- a/src/utils/sha256.cpp +++ b/src/utils/sha256.cpp @@ -85,7 +85,7 @@ typedef unsigned int uint32_t; #include "debug.h" -#define SHA256_BLOCK_SIZE (512 / 8) +static const unsigned int SHA256_BLOCK_SIZE = (512 / 8); /** An sha 256 context, used by original m_opersha256 */ class SHA256Context @@ -97,7 +97,7 @@ class SHA256Context uint32_t h[8]; }; -#define SHA256_DIGEST_SIZE (256 / 8) +static const unsigned int SHA256_DIGEST_SIZE = (256 / 8); #define SHFR(x, n) (x >> n) #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) -- cgit v1.2.3-60-g2f50