harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7fd8589fc3330fe7c0f73b80989c3811f269c594
parent f386bec34579235f8c4e6928ed3374f393979d2f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 19 Dec 2020 13:19:38 -0500

check: re-classify string constant TODO

Diffstat:
Msrc/check.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -57,6 +57,7 @@ check_expr_constant(struct context *ctx, case TYPE_STORAGE_BOOL: case TYPE_STORAGE_F32: case TYPE_STORAGE_F64: + case TYPE_STORAGE_STRING: assert(0); // TODO case TYPE_STORAGE_CHAR: case TYPE_STORAGE_UINTPTR: @@ -66,7 +67,6 @@ check_expr_constant(struct context *ctx, case TYPE_STORAGE_FUNCTION: case TYPE_STORAGE_POINTER: case TYPE_STORAGE_SLICE: - case TYPE_STORAGE_STRING: case TYPE_STORAGE_STRUCT: case TYPE_STORAGE_TAGGED_UNION: case TYPE_STORAGE_UNION: