From 0a2f9efa97b7072709a9eec87daa4ea36dd4bcdc Mon Sep 17 00:00:00 2001 From: Nathan Crawford Date: Thu, 5 Dec 2013 09:35:11 -0500 Subject: [PATCH] Fix swapped digits in 7-bit mask --- PesFile/PesFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PesFile/PesFile.cs b/PesFile/PesFile.cs index f0d1562..1286db1 100644 --- a/PesFile/PesFile.cs +++ b/PesFile/PesFile.cs @@ -187,7 +187,7 @@ namespace PesFile SByte retval; // Ignore the 8th bit. (make sure it's 0) - b &= 0xf7; + b &= 0x7f; // Check for a negative number (check if 7th bit is 1) if ((b & 0x40) == 0x40)