mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
bitparser: replace _raw_data.size() with _file_size
Signed-off-by: Michal Sieron <[email protected]>
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ int BitParser::parse()
|
||||
int pos = parseHeader();
|
||||
|
||||
/* _bit_length is length of data to send */
|
||||
int rest_of_file_length = _raw_data.size() - pos;
|
||||
int rest_of_file_length = _file_size - pos;
|
||||
if (_bit_length < rest_of_file_length) {
|
||||
printWarn("File is longer than bitstream length declared in the header: " +
|
||||
std::to_string(rest_of_file_length) + " vs " + std::to_string(_bit_length)
|
||||
|
||||
Reference in New Issue
Block a user