diff options
author | Samuel Lidén Borell <samuel@kodafritt.se> | 2025-07-05 23:50:49 +0200 |
---|---|---|
committer | Samuel Lidén Borell <samuel@kodafritt.se> | 2025-07-05 23:50:49 +0200 |
commit | 9e1a79aff3c18c6c6b6c4db6116bd2dbab20ec52 (patch) | |
tree | 55b591f2f88cdaa03976c9f873d4d0d7b42f79a6 /bootstrap | |
parent | dce90a91c4b7e87010b805338096bdefc0a78ec3 (diff) | |
download | slul-try2-main.tar.gz slul-try2-main.tar.bz2 slul-try2-main.zip |
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/parsedecl.c | 4 | ||||
-rw-r--r-- | bootstrap/typechk.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bootstrap/parsedecl.c b/bootstrap/parsedecl.c index 90af6f9..bd8edb0 100644 --- a/bootstrap/parsedecl.c +++ b/bootstrap/parsedecl.c @@ -20,10 +20,10 @@ static enum Token parse_paramlist(struct Var **list_out, size_t *count_out); static struct TypeRef *parse_type_usage(void); static const struct TypeRefNumeric range_uint = { - 0, 4294967295U, + 0, 4294967295U }; static const struct TypeRefNumeric range_int = { - 0, 2147483647U, + 0, 2147483647U }; void parse_source_index(FILE *f) diff --git a/bootstrap/typechk.c b/bootstrap/typechk.c index 812f86e..99c14d3 100644 --- a/bootstrap/typechk.c +++ b/bootstrap/typechk.c @@ -84,13 +84,13 @@ static bool is_intbool_literal(const struct Expr *expr) SlulInt min, max; */ static const struct TypeRefNumeric num_zero = { - 0, 0, + 0, 0 }; static const struct TypeRefNumeric num_one = { - 1, 1, + 1, 1 }; const struct TypeRefNumeric range_bool = { - 0, 1, + 0, 1 }; static void require_type(const struct Expr *expr, enum TypeRefKind kind, |