From cd5d1181583a6221b89a22d7d4b3108d5ba6d475 Mon Sep 17 00:00:00 2001 From: lsreevatsa Date: Wed, 29 Mar 2006 11:59:07 +0000 Subject: [PATCH] --- c_micasad/lss/CASACrypto.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_micasad/lss/CASACrypto.cs b/c_micasad/lss/CASACrypto.cs index 59f703c7..2c47dd41 100644 --- a/c_micasad/lss/CASACrypto.cs +++ b/c_micasad/lss/CASACrypto.cs @@ -241,8 +241,8 @@ namespace sscs.crypto fsDecrypt.Close(); return null; } - ulong fileLen = fsDecrypt.Length - HASH_SIZE; - byte[] fromEncrypt = new byte[fileLen]; + ulong fileLen = (ulong)(fsDecrypt.Length - HASH_SIZE); + byte[] fromEncrypt = new byte[fileLen]; //Read the data out of the crypto stream. int bytesRead = csDecrypt.Read(fromEncrypt, 0, fromEncrypt.Length);