commit c53e5860b44a3837d74b59c7f08586f7aa52acd4
parent ad415de3963c6990d6de84de3c18a2bcff9082ec
Author: Eyal Sawady <ecs@d2evs.net>
Date: Mon, 6 Sep 2021 08:47:07 +0000
Make enums numeric
Signed-off-by: Eyal Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/types.c b/src/types.c
@@ -231,8 +231,8 @@ type_is_numeric(const struct type *type)
case STORAGE_CHAR:
case STORAGE_RUNE:
case STORAGE_NULL:
- case STORAGE_ENUM:
return false;
+ case STORAGE_ENUM:
case STORAGE_I8:
case STORAGE_I16:
case STORAGE_I32: