decoder_detail: Add check for N==0 to GetArgInfo

This commit is contained in:
MerryMage 2020-10-11 22:12:21 +01:00
parent 6bb49726f4
commit 46f96904db

View file

@ -85,9 +85,13 @@ private:
arg_index++; arg_index++;
} }
if constexpr (N > 0) {
ASSERT(arg_index < N); ASSERT(arg_index < N);
masks[arg_index] |= one << bit_position; masks[arg_index] |= one << bit_position;
shifts[arg_index] = bit_position; shifts[arg_index] = bit_position;
} else {
ASSERT_FALSE();
}
} }
} }