Browse Source
Update htif.cc (#577)
Bug fix for final byte in signature output.
pull/582/head
S.Pawan Kumar
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
fesvr/htif.cc
|
|
|
@ -178,7 +178,7 @@ void htif_t::stop() |
|
|
|
for (addr_t i = 0; i < sig_len; i += line_size) |
|
|
|
{ |
|
|
|
for (addr_t j = line_size; j > 0; j--) |
|
|
|
if (i+j < sig_len) |
|
|
|
if (i+j <= sig_len) |
|
|
|
sigs << std::setw(2) << (uint16_t)buf[i+j-1]; |
|
|
|
else |
|
|
|
sigs << std::setw(2) << (uint16_t)0; |
|
|
|
|