From dcd4e33426979124d256bf33bc5588637ef6fc77 Mon Sep 17 00:00:00 2001 From: AntoinePerrin25 Date: Fri, 6 Mar 2026 12:03:03 +0100 Subject: [PATCH] Fixed warning caused by wrongly formatting TraceLog --- examples/core/core_storage_values.c | 2 +- examples/models/models_loading_vox.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/core/core_storage_values.c b/examples/core/core_storage_values.c index a49dba57b..9e117cdf2 100644 --- a/examples/core/core_storage_values.c +++ b/examples/core/core_storage_values.c @@ -133,7 +133,7 @@ bool SaveStorageValue(unsigned int position, int value) else { // RL_REALLOC failed - TraceLog(LOG_WARNING, "FILEIO: [%s] Failed to realloc data (%u), position in bytes (%u) bigger than actual file size", STORAGE_DATA_FILE, dataSize, position*sizeof(int)); + TraceLog(LOG_WARNING, "FILEIO: [%s] Failed to realloc data (%u), position in bytes (%lu) bigger than actual file size", STORAGE_DATA_FILE, dataSize, position*sizeof(int)); // We store the old size of the file newFileData = fileData; diff --git a/examples/models/models_loading_vox.c b/examples/models/models_loading_vox.c index 04b203ad9..ec576322a 100644 --- a/examples/models/models_loading_vox.c +++ b/examples/models/models_loading_vox.c @@ -67,7 +67,7 @@ int main(void) models[i] = LoadModel(voxFileNames[i]); double t1 = GetTime()*1000.0; - TraceLog(LOG_INFO, TextFormat("[%s] Model file loaded in %.3f ms", voxFileNames[i], t1 - t0)); + TraceLog(LOG_INFO, "%s", TextFormat("[%s] Model file loaded in %.3f ms", voxFileNames[i], t1 - t0)); // Compute model translation matrix to center model on draw position (0, 0 , 0) BoundingBox bb = GetModelBoundingBox(models[i]);