OSDN Git Service

Bugfix.
authorLoRd_MuldeR <mulder2@gmx.de>
Sun, 9 Jul 2017 19:03:36 +0000 (21:03 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Sun, 9 Jul 2017 19:03:36 +0000 (21:03 +0200)
tools/GenTables/src/gen_table_xor.c

index 7c57474..439b6ef 100644 (file)
@@ -225,7 +225,10 @@ static void* thread_main(void *const param)
                                        {
                                                improved = true;
                                                memcpy(data->row_buffer, temp, sizeof(uint8_t) * ROW_LEN);
-                                               error = next_error;
+                                               if (!((error = next_error) > 0U))
+                                               {
+                                                       goto success;
+                                               }
                                        }
                                }
                                if (!improved)