summaryrefslogtreecommitdiffstats
path: root/crypto/sha
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-07-25 16:54:08 +0000
committerAndy Polyakov <appro@openssl.org>2004-07-25 16:54:08 +0000
commit2fcf435d738e3fae7f11ed888568652583ebf871 (patch)
tree72af178b3462df54fe57ea78ef14ca2da13c9d10 /crypto/sha
parentda2ee71de577fd9fb34bb8a8d253c3b8a9733842 (diff)
Some compilers are just too whiny. DEC C doesn't like long long...
Diffstat (limited to 'crypto/sha')
-rw-r--r--crypto/sha/sha.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/sha/sha.h b/crypto/sha/sha.h
index f25512e5e6..a900ad3e95 100644
--- a/crypto/sha/sha.h
+++ b/crypto/sha/sha.h
@@ -101,7 +101,7 @@ typedef struct SHAstate_st
SHA_LONG h0,h1,h2,h3,h4;
SHA_LONG Nl,Nh;
SHA_LONG data[SHA_LBLOCK];
- int num;
+ unsigned int num;
} SHA_CTX;
#ifndef OPENSSL_NO_SHA0
@@ -159,6 +159,9 @@ void SHA256_Transform(SHA256_CTX *c, const unsigned char *data);
#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
#define SHA_LONG64 unsigned __int64
#define U64(C) C##UI64
+#elif defined(__arch64__)
+#define SHA_LONG64 unsigned long
+#define U64(C) C##UL
#else
#define SHA_LONG64 unsigned long long
#define U64(C) C##ULL