chiark / gitweb /
logn: tests - don't compare signed with unsigned
authorTom Gundersen <teg@jklm.no>
Thu, 25 May 2017 14:11:04 +0000 (16:11 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
src/libelogind/sd-login/test-login.c

index 5fd0c13..589776a 100644 (file)
@@ -43,7 +43,7 @@ static char* format_uids(char **buf, uid_t* uids, int count) {
                 pos += inc;
         }
 
-        assert_se(pos < size);
+        assert_se(pos < (ssize_t)size);
         (*buf)[pos] = '\0';
 
         return *buf;