summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-03-30 14:38:16 +0200
committerraysan5 <[email protected]>2020-03-30 14:38:16 +0200
commite8a8d544c594b81b778c1e1258173837de61b001 (patch)
tree0ed7f5bff7da51ef79cc4a5c9fcb0b1881599612 /src/core.c
parent62cdb2299bd2a9f96f854b06fee5e4429a5f9e25 (diff)
downloadraylib-e8a8d544c594b81b778c1e1258173837de61b001.tar.gz
raylib-e8a8d544c594b81b778c1e1258173837de61b001.zip
Review formating and signegness issues
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core.c b/src/core.c
index 11106eac..b3010ce4 100644
--- a/src/core.c
+++ b/src/core.c
@@ -16,7 +16,7 @@
*
* #define PLATFORM_DESKTOP
* Windowing and input system configured for desktop platforms: Windows, Linux, OSX, FreeBSD, OpenBSD, NetBSD, DragonFly
-* NOTE: Oculus Ritf CV1 requires PLATFORM_DESKTOP for mirror rendering - View [rlgl] module to enable it
+* NOTE: Oculus Rift CV1 requires PLATFORM_DESKTOP for mirror rendering - View [rlgl] module to enable it
*
* #define PLATFORM_ANDROID
* Windowing and input system configured for Android device, app activity managed internally in this module.
@@ -2226,19 +2226,18 @@ void SaveStorageValue(unsigned int position, int value)
else
{
// RL_REALLOC failed
- TRACELOG(LOG_WARNING, "FILEIO: Position in bytes (%u) bigger than actual size of file [%s] (%u) Realloc function FAIL",position*sizeof(int),path,dataSize);
+ TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to realloc data (%u), position in bytes (%u) bigger than actual file size", path, dataSize, position*sizeof(int));
- // We store the old size of the file.
- newFileData=fileData;
- newDataSize=dataSize;
+ // We store the old size of the file
+ newFileData = fileData;
+ newDataSize = dataSize;
}
-
}
else
{
- // We store the old size of the file.
- newFileData=fileData;
- newDataSize=dataSize;
+ // Store the old size of the file
+ newFileData = fileData;
+ newDataSize = dataSize;
// Replace value on selected position
int *dataPtr = (int *)newFileData;
@@ -2250,7 +2249,8 @@ void SaveStorageValue(unsigned int position, int value)
}
else
{
- TRACELOG(LOG_INFO, "FILEIO: [%s] File not found, creating it.",path);
+ TRACELOG(LOG_INFO, "FILEIO: [%s] File not found, creating it", path);
+
dataSize = (position + 1)*sizeof(int);
fileData = (unsigned char *)RL_MALLOC(dataSize);
int *dataPtr = (int *)fileData;