commit 0b09e68a1bc71be5eaa5754c98365cf677992aed
parent dc99102efafb82f90ae3f39ce98f30e06f94335b
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Sat, 24 Jan 2026 11:51:44 +0100
Merge remote-tracking branch 'origin'
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README b/README
@@ -314,7 +314,7 @@ f(int g())
return g();
}
-Function type names seem unnecesary , because they are used as
+Function type names seem unnecessary, because they are used as
an alias of the function pointer types, but it is weird that something
like sizeof(int (int)) is not allowed (because here it should be
understood as the size of a function), but f(int (int)) is allowed
diff --git a/src/cmd/scc-cc/cc1/cc1.h b/src/cmd/scc-cc/cc1/cc1.h
@@ -325,7 +325,7 @@ struct type {
Symbol **fields; /* fields of aggregate type */
} p;
union {
- unsigned char rank; /* convertion rank */
+ unsigned char rank; /* conversion rank */
long long elem; /* number of type parameters */
} n;
Type *next; /* local list pointer */
diff --git a/src/cmd/scc-cc/cc1/types.c b/src/cmd/scc-cc/cc1/types.c
@@ -199,7 +199,7 @@ typesize(Type *tp)
/* FIXME: Control overflow */
/*
* The alignment of the struct/union is
- * he alignment of the largest included type.
+ * the alignment of the largest included type.
* The size of an union is the size of the largest
* field, and the size of a struct is the sum
* of the size of every field plus padding bits.