mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix MSVC
This commit is contained in:
parent
334b8cca05
commit
6c54bba6f6
|
@ -34,7 +34,7 @@ bool FunctionCall::AssertsEquals(std::vector<function_call> expected, std::vecto
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < expected.size(); i++) {
|
for (size_t i = 0; i < expected.size(); i++) {
|
||||||
function_call expectedCall = expected[i];
|
function_call expectedCall = expected[i];
|
||||||
function_call actualCall = actual[i];
|
function_call actualCall = actual[i];
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
#include <cstdarg>
|
||||||
|
|
||||||
#include "String.hpp"
|
#include "String.hpp"
|
||||||
|
|
||||||
namespace String {
|
namespace String {
|
||||||
|
@ -21,11 +23,11 @@ namespace String {
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
|
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
vsnprintf(buffer, sizeof(buffer), format, args);
|
vsnprintf(buffer, sizeof(buffer), format, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
return std::string(buffer);
|
return std::string(buffer);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue