From 80abccc3ad9702540dc5237671d02b6522217f7d Mon Sep 17 00:00:00 2001 From: belliash Date: Fri, 19 Apr 2019 06:40:16 +0200 Subject: [PATCH] This variable contains an array of booleans, really. And if we managed to insert a boolean value to an array of chars, this means we have a bug somewhere. --- tests/static_var.aer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/static_var.aer b/tests/static_var.aer index 535e4ff..1c3e6b1 100644 --- a/tests/static_var.aer +++ b/tests/static_var.aer @@ -1,7 +1,7 @@ class Program { string cycle(char $a, char $b, int $i = 0) { - static char[] $switches; + static bool[] $switches; if($switches[$i]) $switches[$i] = !$switches[$i]; else