From 5191022a6b95959e6270482b725f5969d30960a6 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 16 Apr 2020 07:22:28 -0400 Subject: [PATCH] Fix unknown stack array size (#80) Compiler expected a static value. Writing 64 directly in the declaration should fix it up. --- examples/custom_file_dialog/gui_file_dialog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/custom_file_dialog/gui_file_dialog.h b/examples/custom_file_dialog/gui_file_dialog.h index ebb0c04..8b13ae6 100644 --- a/examples/custom_file_dialog/gui_file_dialog.h +++ b/examples/custom_file_dialog/gui_file_dialog.h @@ -427,7 +427,7 @@ static char **ReadDirectoryFiles(const char *dir, int *filesCount, char *filterE if (dirFilesCount > 1) { const int MAX = 64; - unsigned int left = 0, stack[MAX], pos = 0, seed = rand(), len = dirFilesCount; + unsigned int left = 0, stack[64], pos = 0, seed = rand(), len = dirFilesCount; for ( ; ; ) {