Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 10cfaa8

Modified the assertion to fix a crash.

The crash only happened in release mode.

  • Participants
  • Parent commits 8b2c3b6

Comments (0)

Files changed (1)

File black-hole-solitaire/c-solver/fcs_hash.c

 #define PLACE() (hash_value & (hash->size_bitmask))
     list = (hash->entries + PLACE());
 
-    assert(item = list->first_item);
+    item = list->first_item;
+
+    assert(item != NULL);
 
     result->key = key_ptr->key;