summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Grunt <pavel.grunt@gmail.com>2014-09-04 15:33:16 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2014-09-18 13:21:58 +0200
commit457d556c00c59bdb44476d1154b876652788d05f (patch)
tree26b04c51151269c0fd3ea0bbbff081bdef163f5f /tests
parent18fc36c0542db120d78bd5a4a4c4d89b44607f5d (diff)
Fix -Wsign-compare
Diffstat (limited to 'tests')
-rw-r--r--tests/util.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/util.c b/tests/util.c
index e090f5c..b9b9535 100644
--- a/tests/util.c
+++ b/tests/util.c
@@ -36,7 +36,7 @@ static void test_dos2unix(void)
{
GError *err = NULL;
gchar *tmp;
- int i;
+ unsigned int i;
for (i = 0; i < G_N_ELEMENTS(dosunix); i++) {
if (!(dosunix[i].flags & DOS2UNIX))
@@ -59,7 +59,7 @@ static void test_unix2dos(void)
{
GError *err = NULL;
gchar *tmp;
- int i;
+ unsigned int i;
for (i = 0; i < G_N_ELEMENTS(dosunix); i++) {
if (!(dosunix[i].flags & UNIX2DOS))
@@ -137,9 +137,9 @@ static void test_set_bit(void)
"\xf7\x31",
}
};
- int i, j, bit;
+ unsigned int i, j, bit;
guint8 *dest;
- int bytes;
+ unsigned int bytes;
for (i = 0 ; i < G_N_ELEMENTS(tests); ++i) {
bytes = (tests[i].len + 7) / 8;
@@ -158,7 +158,8 @@ static void test_set_bit(void)
static void test_mono_edge_highlight(void)
{
- int i, j, bit;
+ unsigned int i;
+ int j, bit;
guint8 *and;
guint8 *xor;
guint8 *dest;