Skip to contentSkip to conversation

fix comparison warning on 32-bit architectures.

PATCH New Mikulas Patocka 1 participant 1 message Aug 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix comparison warning on 32-bit architectures.

Hi

This patch fixes a warning about comparison between signed and unsigned integer.

---
 test/lib/brick-shelltest.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
test/lib/brick-shelltest.h +2 -1
Index: lvm2/test/lib/brick-shelltest.h
===================================================================
@@ -713,7 +713,8 @@ struct KMsg : Source {
     void transform( char *buf, ssize_t *sz ) {
         char newbuf[ buffer_size ];
         struct tm time_info;
-        unsigned level, num, pos;
+        int pos;
+        unsigned level, num;
         unsigned long t;
         time_t tt;
         size_t len;