diff options
| author | 2023-05-28 19:29:10 +0200 | |
|---|---|---|
| committer | 2023-05-28 20:22:33 +0200 | |
| commit | 104330a399f405b83328525bb2be55b360109b16 (patch) | |
| tree | 31dd3fa40c11464148fdc07af1c558324ff9940d /type.c | |
| parent | d0784193a8589982290373e95e2f228439e59160 (diff) | |
improve struct token
Diffstat (limited to 'type.c')
| -rw-r--r-- | type.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) { |