decoder_detail: Add check for N==0 to GetArgInfo
This commit is contained in:
parent
6bb49726f4
commit
46f96904db
1 changed files with 7 additions and 3 deletions
|
@ -85,9 +85,13 @@ private:
|
||||||
arg_index++;
|
arg_index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(arg_index < N);
|
if constexpr (N > 0) {
|
||||||
masks[arg_index] |= one << bit_position;
|
ASSERT(arg_index < N);
|
||||||
shifts[arg_index] = bit_position;
|
masks[arg_index] |= one << bit_position;
|
||||||
|
shifts[arg_index] = bit_position;
|
||||||
|
} else {
|
||||||
|
ASSERT_FALSE();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue