kopia lustrzana https://github.com/njcrawford/EmbroideryReader
Mask off the 8th bit in get7Bit2sComplement()
Also update copyright yearBranch_2.1.x
rodzic
10e7a923f1
commit
72158feeeb
|
@ -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)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue