summaryrefslogtreecommitdiffhomepage
path: root/src/utils.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2023-04-09 13:42:15 -0700
committerGitHub <[email protected]>2023-04-09 22:42:15 +0200
commite57ee9c0e84de9cbf6fddf2f46786e87c64cb64e (patch)
treeadaae055089883991aac95072d1186a87f8ce556 /src/utils.c
parent06c17ab7f1eec157f70a9fde702a6332c89763af (diff)
downloadraylib-e57ee9c0e84de9cbf6fddf2f46786e87c64cb64e.tar.gz
raylib-e57ee9c0e84de9cbf6fddf2f46786e87c64cb64e.zip
Fix warnings in raylib for MSVC (#3004)
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 771271d3..da92ce52 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -145,7 +145,7 @@ void TraceLog(int logType, const char *text, ...)
default: break;
}
- unsigned int textSize = strlen(text);
+ unsigned int textSize = (unsigned int)strlen(text);
memcpy(buffer + strlen(buffer), text, (textSize < (MAX_TRACELOG_MSG_LENGTH - 12))? textSize : (MAX_TRACELOG_MSG_LENGTH - 12));
strcat(buffer, "\n");
vprintf(buffer, args);