mirror of
https://github.com/schnaader/precomp-cpp
synced 2026-08-23 00:23:04 -04:00
revert bit shift fix
- reverted because 7 * section_size_bytes will never be greater than 64 if the function is used correctly, so the code is correct
This commit is contained in:
parent
770e9e7a17
commit
9644f76d71
1 changed files with 1 additions and 1 deletions
|
|
@ -938,7 +938,7 @@ bool EncodeSection(const JPEGData& jpg, State* s, uint8_t tag,
|
|||
}
|
||||
*pos += section_size;
|
||||
|
||||
if ((7 * section_size_bytes) < 64 && (section_size >> (7 * section_size_bytes)) > 0) {
|
||||
if ((section_size >> (7 * section_size_bytes)) > 0) {
|
||||
BRUNSLI_LOG_ERROR() << "Section 0x" << std::hex << marker << " size "
|
||||
<< std::dec << section_size << " too large for "
|
||||
<< section_size_bytes << " bytes base128 number."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue