Răsfoiți Sursa

Merge branch 'master' of github.com:bkaradzic/bx

Branimir Karadžić 9 ani în urmă
părinte
comite
b44e3b59e2
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/crt.cpp
  2. 1 1
      src/string.cpp

+ 1 - 1
src/crt.cpp

@@ -252,7 +252,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;