From 832995b43a9382bc159040107fcc159a37730fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 7 Feb 2017 16:04:58 -0800 Subject: [PATCH] Cleanup. --- src/crt.cpp | 2 +- src/string.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crt.cpp b/src/crt.cpp index 401ce00..fbc91c7 100644 --- a/src/crt.cpp +++ b/src/crt.cpp @@ -246,7 +246,7 @@ namespace bx int32_t write(WriterI* _writer, const char* _format, va_list _argList, Error* _err) { - MemoryReader reader(_format, strnlen(_format) ); + MemoryReader reader(_format, uint32_t(strnlen(_format) ) ); int32_t size = 0; diff --git a/src/string.cpp b/src/string.cpp index a3e1ed5..3e927f9 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -388,7 +388,7 @@ namespace bx { if (1 < _max) { - StaticMemoryBlockWriter writer(_out, _max-1); + StaticMemoryBlockWriter writer(_out, uint32_t(_max-1) ); _out[_max-1] = '\0'; Error err;