From 104330a399f405b83328525bb2be55b360109b16 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 28 May 2023 19:29:10 +0200 Subject: improve struct token --- type.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'type.c') diff --git a/type.c b/type.c index 3aeb8a1..5f984d6 100644 --- a/type.c +++ b/type.c @@ -80,7 +80,7 @@ interntd(const struct typedata *td) if (!slot->t) { uint nmemb; static struct arena *datarena; - if (!datarena) { + if (!datarena) { enum { N = 1<<12 }; static union { char m[sizeof(struct arena) + N]; struct arena *_align; } amem; datarena = (void *)amem.m, datarena->cap = N; @@ -270,9 +270,9 @@ cvtarith(union type a, union type b) if (issigned(a) == issigned(b)) { /* when both are integers with same signage, choose type with greatest rank */ return a.t > b.t ? a : b; - } + } /* if the signed type can represent all values of the unsigned type, - * choose it, otherwise choose its corresponding unsigned type */ + * choose it, otherwise choose its corresponding unsigned type */ /* so long long + unsigned = long long; * but long long + unsigned long = unsigned long long */ if (issigned(a)) { -- cgit v1.2.3