chiark / gitweb /
Clarify conditions to avoid compiler errors
[sgt-puzzles.git] / signpost.c
index aa2e13af9abfa65ce51c0b663aead1a3cb32825d..2e2dff227503c51b37e290bc9c73522276a3bf96 100644 (file)
@@ -284,7 +284,7 @@ static int check_nums(game_state *orig, game_state *copy, int only_immutable)
     int i, ret = 1;
     assert(copy->n == orig->n);
     for (i = 0; i < copy->n; i++) {
-        if (only_immutable && !copy->flags[i] & FLAG_IMMUTABLE) continue;
+        if (only_immutable && !(copy->flags[i] & FLAG_IMMUTABLE)) continue;
         assert(copy->nums[i] >= 0);
         assert(copy->nums[i] <= copy->n);
         if (copy->nums[i] != orig->nums[i]) {