summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-30 23:27:30 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-30 23:27:30 -0400
commit184e247a680c7889863f1b6676883d3cfa87eaba (patch)
treec962d34bf533b6c394b1626b0c385c2492672271 /types.c
parent4ee46b53971e876d93fea0c0a2ba358cad51be21 (diff)
small struct fixes
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index 65534a1..0932496 100644
--- a/types.c
+++ b/types.c
@@ -1206,7 +1206,7 @@ static bool types_decl(Typer *tr, Declaration *d) {
size_t n_idents = arr_len(d->idents);
if (d->type.kind == TYPE_TUPLE) {
if (n_idents != arr_len(d->type.tuple)) {
- err_print(d->where, "Expected to have %lu things declared in declaration, but got %lu.", (unsigned long)n_idents);
+ err_print(d->where, "Expected to have %lu things declared in declaration, but got %lu.", (unsigned long)arr_len(d->type.tuple), (unsigned long)n_idents);
success = false;
goto ret;
}