Fix m 60 a 0 by making modified variable non-const master
authorDavid Llewellyn-Jones <david@flypig.co.uk>
Fri, 26 Aug 2016 18:10:36 +0000 (18:10 +0000)
committerDavid Llewellyn-Jones <david@flypig.co.uk>
Fri, 26 Aug 2016 18:10:36 +0000 (18:10 +0000)
The pw_len variable is a constant in the standard version. When
adding the mangle code it needs to be modified, so the const
should have been removed.

OpenCL/m00060_a1_m.cl

index 4f50e76..2fce0ac 100644 (file)
@@ -295,7 +295,7 @@ __kernel void m00060_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf,
   {
     const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
 
-    const u32x pw_len = pw_l_len + pw_r_len;
+    u32x pw_len = pw_l_len + pw_r_len;
 
     /**
      * concat password candidate
@@ -497,7 +497,7 @@ __kernel void m00060_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf,
   {
     const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
 
-    const u32x pw_len = pw_l_len + pw_r_len;
+    u32x pw_len = pw_l_len + pw_r_len;
 
     /**
      * concat password candidate