Branimir Karadžić 9 years ago
parent
commit
832995b43a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/crt.cpp
  2. 1 1
      src/string.cpp

+ 1 - 1
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;
 

+ 1 - 1
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;