[PATCH 2/2] rtemstoolkit/rld-compression.cpp: Fix warning for comparing signed to unsigned

Joel Sherrill joel at rtems.org
Thu Sep 14 23:06:08 UTC 2017


---
 rtemstoolkit/rld-compression.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemstoolkit/rld-compression.cpp b/rtemstoolkit/rld-compression.cpp
index 2abeff1..5ccd76a 100644
--- a/rtemstoolkit/rld-compression.cpp
+++ b/rtemstoolkit/rld-compression.cpp
@@ -285,7 +285,7 @@ namespace rld
               std::cout << "rtl: decomp: block-size=" << block_size
                         << std::endl;
 
-            if (image.read (io, block_size) != block_size)
+            if (image.read (io, block_size) != (ssize_t) block_size)
               throw rld::error ("Read past end", "compression");
 
             level = ::fastlz_decompress (io, block_size, buffer, size);
-- 
1.8.3.1




More information about the devel mailing list