Fix hard-coded OP_MAX in variant_op.cpp

This commit is contained in:
strank 2020-09-01 02:59:14 -04:00
parent 18b3bfec6b
commit 447b140671

View File

@ -118,7 +118,7 @@
/* clang-format on */ /* clang-format on */
#define CASES(PREFIX) static const void *switch_table_##PREFIX[25][Variant::VARIANT_MAX] = { \ #define CASES(PREFIX) static const void *switch_table_##PREFIX[Variant::OP_MAX][Variant::VARIANT_MAX] = { \
TYPES(PREFIX, OP_EQUAL), \ TYPES(PREFIX, OP_EQUAL), \
TYPES(PREFIX, OP_NOT_EQUAL), \ TYPES(PREFIX, OP_NOT_EQUAL), \
TYPES(PREFIX, OP_LESS), \ TYPES(PREFIX, OP_LESS), \