summaryrefslogtreecommitdiffhomepage
path: root/examples/core/core_storage_values.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/core/core_storage_values.c')
-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)