aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2014-04-07 13:31:00 +0200
committerVincent Lefevre <vincent@vinc17.net>2014-04-07 13:31:00 +0200
commit3e9a7e9d69e3adb0e9ed65d11caf415e74458fe9 (patch)
tree9cb8986b31d58cd7ba2eb8e28a437cd7fa33b838 /tccgen.c
parentd09a46d655f18e88b848e95ddf7fed7ac20bfc36 (diff)
downloadtinycc-3e9a7e9d69e3adb0e9ed65d11caf415e74458fe9.tar.gz
tinycc-3e9a7e9d69e3adb0e9ed65d11caf415e74458fe9.tar.bz2
Corrected spelling mistakes in comments and strings
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccgen.c b/tccgen.c
index e6e0fe1..ec92797 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -1579,7 +1579,7 @@ static inline int is_integer_btype(int bt)
bt == VT_INT || bt == VT_LLONG);
}
-/* check types for comparison or substraction of pointers */
+/* check types for comparison or subtraction of pointers */
static void check_comparison_pointer_types(SValue *p1, SValue *p2, int op)
{
CType *type1, *type2, tmp_type1, tmp_type2;
@@ -5574,7 +5574,7 @@ static void decl_initializer_alloc(CType *type, AttributeDef *ad, int r,
if (sym->type.t & VT_EXTERN) {
/* if the variable is extern, it was not allocated */
sym->type.t &= ~VT_EXTERN;
- /* set array size if it was ommited in extern
+ /* set array size if it was omitted in extern
declaration */
if ((sym->type.t & VT_ARRAY) &&
sym->type.ref->c < 0 &&