mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-24 20:18:30 +00:00
Remove trailing spaces
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user