Browse Source

Bugfix: opencl: Remove unnecessary casts from rot() macro, which created type issues

Line 192 uses it with non-vector
Luke Dashjr 12 years ago
parent
commit
0bb835d1a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      phatk121016.cl

+ 1 - 1
phatk121016.cl

@@ -81,7 +81,7 @@ __constant uint H[8] = {
 #else // BITALIGN
 #else // BITALIGN
 	#define Ch(x, y, z) (z ^ (x & (y ^ z)))
 	#define Ch(x, y, z) (z ^ (x & (y ^ z)))
 	#define Ma(x, y, z) ((x & z) | (y & (x | z)))
 	#define Ma(x, y, z) ((x & z) | (y & (x | z)))
-	#define rot(x, y) rotate((u)x, (u)y)
+	#define rot(x, y) rotate(x, y)
 	#define rotr(x, y) rotate((u)x, (u)(32-y))
 	#define rotr(x, y) rotate((u)x, (u)(32-y))
 #endif
 #endif