diff options
| author | Ray <[email protected]> | 2023-09-02 12:05:34 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-09-02 12:05:34 +0200 |
| commit | 0f447f1fb6aeed5e3e807d123978b7feca240d1a (patch) | |
| tree | 6fb6e36ff2459ee0c7da7312b9026c9f6040b3f6 /src/rtext.c | |
| parent | d41e3141f194d82ad0f6667aadac2d96d69bb770 (diff) | |
| download | raylib-0f447f1fb6aeed5e3e807d123978b7feca240d1a.tar.gz raylib-0f447f1fb6aeed5e3e807d123978b7feca240d1a.zip | |
REVIEWED: Data size type consistency between functions #3168
Diffstat (limited to 'src/rtext.c')
| -rw-r--r-- | src/rtext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtext.c b/src/rtext.c index 9017c8b2..facf24c2 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -363,13 +363,13 @@ Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepoi Font font = { 0 }; // Loading file to memory - unsigned int fileSize = 0; - unsigned char *fileData = LoadFileData(fileName, &fileSize); + int dataSize = 0; + unsigned char *fileData = LoadFileData(fileName, &dataSize); if (fileData != NULL) { // Loading font from memory data - font = LoadFontFromMemory(GetFileExtension(fileName), fileData, fileSize, fontSize, codepoints, codepointCount); + font = LoadFontFromMemory(GetFileExtension(fileName), fileData, dataSize, fontSize, codepoints, codepointCount); UnloadFileData(fileData); } |
