Remove trailing spaces

This commit is contained in:
Ray 2024-04-02 09:38:06 +02:00
parent 1b047995d1
commit 646d70e93a
8 changed files with 23 additions and 23 deletions

View file

@ -211,13 +211,13 @@ unsigned char *LoadFileData(const char *fileName, int *dataSize)
{
// NOTE: fread() returns number of read elements instead of bytes, so we read [1 byte, size elements]
size_t count = fread(data, sizeof(unsigned char), size, file);
// WARNING: fread() returns a size_t value, usually 'unsigned int' (32bit compilation) and 'unsigned long long' (64bit compilation)
// dataSize is unified along raylib as a 'int' type, so, for file-sizes > INT_MAX (2147483647 bytes) we have a limitation
if (count > 2147483647)
{
TRACELOG(LOG_WARNING, "FILEIO: [%s] File is bigger than 2147483647 bytes, avoid using LoadFileData()", fileName);
RL_FREE(data);
data = NULL;
}