summaryrefslogtreecommitdiffhomepage
path: root/examples/core
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-08 20:09:32 +0100
committerRay <[email protected]>2023-11-08 20:09:32 +0100
commit040b945fefc341a8f17ab34cdc8fa2a8be6fac96 (patch)
tree8e289ca2c0a3d80a27e670fe7aec23c2f0975e69 /examples/core
parentbee6d7f065e8e4fcff5eeaa075d878e45fed24f5 (diff)
downloadraylib-040b945fefc341a8f17ab34cdc8fa2a8be6fac96.tar.gz
raylib-040b945fefc341a8f17ab34cdc8fa2a8be6fac96.zip
Reviewed some examples and warnings
Diffstat (limited to 'examples/core')
-rw-r--r--examples/core/core_storage_values.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/core/core_storage_values.c b/examples/core/core_storage_values.c
index 12739912..c7fd7d9b 100644
--- a/examples/core/core_storage_values.c
+++ b/examples/core/core_storage_values.c
@@ -104,7 +104,7 @@ int main(void)
bool SaveStorageValue(unsigned int position, int value)
{
bool success = false;
- unsigned int dataSize = 0;
+ int dataSize = 0;
unsigned int newDataSize = 0;
unsigned char *fileData = LoadFileData(STORAGE_DATA_FILE, &dataSize);
unsigned char *newFileData = NULL;
@@ -172,7 +172,7 @@ bool SaveStorageValue(unsigned int position, int value)
int LoadStorageValue(unsigned int position)
{
int value = 0;
- unsigned int dataSize = 0;
+ int dataSize = 0;
unsigned char *fileData = LoadFileData(STORAGE_DATA_FILE, &dataSize);
if (fileData != NULL)