1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

This assert is redundant; not worth an extra #include.

This commit is contained in:
Thomas Harte 2021-01-18 17:56:40 -05:00
parent a601ac0cab
commit e71e506883

View File

@ -65,8 +65,6 @@ class Executor: public CachingExecutor {
const auto index = const auto index =
(int(operation) - MinOperation) * (1 + MaxAddressingMode - MinAddressingMode) + (int(operation) - MinOperation) * (1 + MaxAddressingMode - MinAddressingMode) +
(int(addressing_mode) - MinAddressingMode); (int(addressing_mode) - MinAddressingMode);
assert(index < decltype(index)(sizeof(performers_)/sizeof(*performers_)));
return performers_[index]; return performers_[index];
} }