mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-22 06:07:36 +02:00
latticeBitParser.cpp: parseHeader: force comparison in unsigned char
This commit is contained in:
@@ -57,7 +57,7 @@ int LatticeBitParser::parseHeader()
|
||||
_fd.read(tmp, (_file_size-currPos)*sizeof(char));
|
||||
|
||||
for (int i = 0; i < _file_size-currPos;) {
|
||||
if (tmp[i] == 0xff) {
|
||||
if ((unsigned char)tmp[i] == 0xff) {
|
||||
d = (uint32_t*)(tmp+i);
|
||||
if (d[0] != 0xBDffffff && (0xffffff00 & d[1]) != 0x3BFFFF00){
|
||||
foundEndHeader = true;
|
||||
|
||||
Reference in New Issue
Block a user