summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-05-04 19:56:16 +0000
committerweidai <weidai11@users.noreply.github.com>2007-05-04 19:56:16 +0000
commita740a0ff83c6132aeb022eaf65b39dad739e0a9b (patch)
treed245373b318516f29054221dfc8ffce0ddb927cd /config.h
parent1a66826785869f8eb752f2f5e818a34cbe47ac06 (diff)
downloadcryptopp-git-a740a0ff83c6132aeb022eaf65b39dad739e0a9b.tar.gz
fix warning with Intel compiler
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.h b/config.h
index 6d7a31cb..0539a704 100644
--- a/config.h
+++ b/config.h
@@ -117,10 +117,10 @@ typedef unsigned int word32;
// define large word type, used for file offsets and such
#ifdef WORD64_AVAILABLE
typedef word64 lword;
- const lword LWORD_MAX = W64LIT(0)-1;
+ const lword LWORD_MAX = W64LIT(0xffffffffffffffff);
#else
typedef word32 lword;
- const lword LWORD_MAX = lword(0)-1;
+ const lword LWORD_MAX = 0xffffffffUL;
#endif
// define hword, word, and dword. these are used for multiprecision integer arithmetic