diff options
| author | gingerBill <bill@gingerbill.org> | 2018-09-24 10:22:22 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-09-24 10:22:22 +0100 |
| commit | 597fb452b199f97e20abae260551056302412d39 (patch) | |
| tree | 48694ce8634191790a401b39c29b84d87ea1e055 /src/check_stmt.cpp | |
| parent | 9f3e42e4ef830fde91cc91a557dc6ca01fe3d337 (diff) | |
Minor fixes
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 51b392de1..94de84f86 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1337,7 +1337,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } Type *type = x.type; - if (!is_type_integer(type) && !is_type_float(type) && !is_type_pointer(type)) { + if (!is_type_integer(type) && !is_type_float(type) && !is_type_pointer(type) && !is_type_enum(type)) { error(ie->op, "Only numerical and pointer types are allowed within interval expressions"); goto skip_expr; } |