diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-24 22:48:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-24 22:48:35 +0300 |
commit | b474de4a54c9b1d4d863971e40b807588d554436 (patch) | |
tree | 761e71f86ea232d1688ee2838bd2294c59dea947 /src/utils | |
parent | a316d537dce50f4b4e1e10f5c26a7851baddbd8b (diff) | |
download | manaplus-b474de4a54c9b1d4d863971e40b807588d554436.tar.gz manaplus-b474de4a54c9b1d4d863971e40b807588d554436.tar.bz2 manaplus-b474de4a54c9b1d4d863971e40b807588d554436.tar.xz manaplus-b474de4a54c9b1d4d863971e40b807588d554436.zip |
replace defines to consts.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/sha256.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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))) |