From 2980fbf53cf9274093d07e2a90b75d08c4a12c23 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Mon, 24 Oct 2011 22:17:12 -0700 Subject: [PATCH] Fix plEncryptedStream. --- Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp b/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp index 489ed20e..ffbab70f 100644 --- a/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp +++ b/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp @@ -88,7 +88,7 @@ plEncryptedStream::~plEncryptedStream() // void plEncryptedStream::IEncipher(UInt32* const v) { - register unsigned long y=v[0], z=v[1], sum=0, delta=0x9E3779B9, n=32; + register UInt32 y=v[0], z=v[1], sum=0, delta=0x9E3779B9, n=32; while (n-- > 0) { @@ -102,7 +102,7 @@ void plEncryptedStream::IEncipher(UInt32* const v) void plEncryptedStream::IDecipher(UInt32* const v) { - register unsigned long y=v[0], z=v[1], sum=0xC6EF3720, delta=0x9E3779B9, n=32; + register UInt32 y=v[0], z=v[1], sum=0xC6EF3720, delta=0x9E3779B9, n=32; // sum = delta<<5, in general sum = delta * n