Mask off the 8th bit in get7Bit2sComplement()

Also update copyright year
Branch_2.1.x
njcrawford 2013-12-04 23:21:33 -05:00
rodzic 10e7a923f1
commit 72158feeeb
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
/*
Embroidery Reader - an application to view .pes embroidery designs
Copyright (C) 2011 Nathan Crawford
Copyright (C) 2013 Nathan Crawford
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@ -186,6 +186,9 @@ namespace PesFile
{
SByte retval;
// Ignore the 8th bit. (make sure it's 0)
b &= 0xf7;
// Check for a negative number (check if 7th bit is 1)
if ((b & 0x40) == 0x40)
{