浏览代码

Fix unknown stack array size (#80)

Compiler expected a static value. Writing 64 directly in the declaration should fix it up.
Rob Loach 5 年之前
父节点
当前提交
5191022a6b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/custom_file_dialog/gui_file_dialog.h

+ 1 - 1
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 ( ; ; )
         {