mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-18 21:20:46 +08:00
rtemstoolkit/rld-compression.cpp: Fix warning for comparing signed to unsigned
This commit is contained in:
@@ -273,8 +273,8 @@ namespace rld
|
||||
|
||||
if (image.read (header, 2) == 2)
|
||||
{
|
||||
uint32_t block_size =
|
||||
(((uint32_t) header[0]) << 8) | (uint32_t) header[1];
|
||||
ssize_t block_size =
|
||||
(((ssize_t) header[0]) << 8) | (ssize_t) header[1];
|
||||
|
||||
if (block_size == 0)
|
||||
throw rld::error ("Block size is invalid (0)", "compression");
|
||||
|
Reference in New Issue
Block a user