diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-21 18:54:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-21 18:54:57 +0000 |
commit | 392c3490d97960c22ac4aa15deb035e190584828 (patch) | |
tree | 8f86937da73a3307ed1f0f9f64061beaf749e08b | |
parent | bc6a985761f48a4ce79b80929c7e50d980733b18 (diff) |
unsigned long -> unsigned int: unsigned int should be the same size on AMD64 as it is on 32 bit, but unsigned long is NOT.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3747 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_opermd5.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_opermd5.cpp b/src/modules/m_opermd5.cpp index 42683ac19..b28679372 100644 --- a/src/modules/m_opermd5.cpp +++ b/src/modules/m_opermd5.cpp @@ -24,7 +24,6 @@ using namespace std; #include "modules.h" #include "helperfuncs.h" - /* The four core functions - F1 is optimized somewhat */ #define F1(x, y, z) (z ^ (x & (y ^ z))) #define F2(x, y, z) F1(z, x, y) @@ -35,7 +34,7 @@ using namespace std; #define MD5STEP(f,w,x,y,z,in,s) \ (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x) -typedef unsigned long word32; +typedef unsigned int word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */ typedef unsigned char byte; struct MD5Context { |