mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-06 22:29:18 -05:00
Fix unknown stack array size (#80)
Compiler expected a static value. Writing 64 directly in the declaration should fix it up.
This commit is contained in:
@ -427,7 +427,7 @@ static char **ReadDirectoryFiles(const char *dir, int *filesCount, char *filterE
|
|||||||
if (dirFilesCount > 1)
|
if (dirFilesCount > 1)
|
||||||
{
|
{
|
||||||
const int MAX = 64;
|
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 ( ; ; )
|
for ( ; ; )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user