Fixed compiler warnings (comparison of integers of different signs) for kernel 7800...
authorGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Mon, 25 Jan 2016 12:08:31 +0000 (13:08 +0100)
committerGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Mon, 25 Jan 2016 12:08:31 +0000 (13:08 +0100)
OpenCL/m07800_a3.cl
OpenCL/m10100_a3.cl

index ad5144a..77bd2d8 100644 (file)
@@ -351,7 +351,7 @@ static void m07800m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_le
 
     u32 final_len = pw_len;
 
-    int i;
+    u32 i;
 
     // append MagicArray
 
@@ -582,7 +582,7 @@ static void m07800s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_le
 
     u32 final_len = pw_len;
 
-    int i;
+    u32 i;
 
     // append MagicArray
 
index 076615c..d32e959 100644 (file)
@@ -89,7 +89,7 @@ static void m10100m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k
 
     v0 ^= m;
 
-    int i;
+    u32 i;
     int j;
 
     for (i = 8, j = 2; i <= pw_len; i += 8, j += 2)
@@ -187,7 +187,7 @@ static void m10100s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k
 
     v0 ^= m;
 
-    int i;
+    u32 i;
     int j;
 
     for (i = 8, j = 2; i <= pw_len; i += 8, j += 2)