From: Brendan Hansen Date: Tue, 15 Dec 2020 16:37:06 +0000 (-0600) Subject: added a check I didn't think I needed X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=4894a848ed197ce31713eef7d09cdb1dde4a7a11;p=onyx.git added a check I didn't think I needed --- diff --git a/onyx b/onyx index fd08e0f5..a58312a8 100755 Binary files a/onyx and b/onyx differ diff --git a/src/onyxutils.c b/src/onyxutils.c index b49fb4f2..e689b99a 100644 --- a/src/onyxutils.c +++ b/src/onyxutils.c @@ -819,7 +819,7 @@ b32 type_check_or_auto_cast(AstTyped** pnode, Type* type) { if (func == NULL) return 0; *pnode = (AstTyped *) func; - return 1; + node = *pnode; } if (types_are_compatible(node->type, type)) return 1;