From 344c2659187d72573b7af2ba24f7f3ff86257099 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 9 Feb 2025 14:34:44 +1100 Subject: [PATCH] Parameters are immutable It took me a whole day to change one line. --- source/toy_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/toy_parser.c b/source/toy_parser.c index 7c33dbe..fb310d4 100644 --- a/source/toy_parser.c +++ b/source/toy_parser.c @@ -939,7 +939,7 @@ static void makeFunctionDeclarationStmt(Toy_Bucket** bucketHandle, Toy_Parser* p //read the type specifier if present Toy_ValueType varType = TOY_VALUE_ANY; - bool constant = false; + bool constant = true; //parameters are immutable if (match(parser, TOY_TOKEN_OPERATOR_COLON)) { varType = readType(parser);