Fixed non-POD varargs.

This commit is contained in:
Бранимир Караџић
2021-10-04 13:28:19 -07:00
parent 7d0e528a19
commit c7fc7b4ac6
2 changed files with 3 additions and 3 deletions

View File

@@ -1100,7 +1100,7 @@ namespace bx
break;
case 'S':
size += write(_writer, va_arg(_argList, const StringView), param, _err);
size += write(_writer, *va_arg(_argList, const StringView*), param, _err);
break;
case 'o':

View File

@@ -233,8 +233,8 @@ TEST_CASE("vsnprintf")
) );
REQUIRE(test("hello, world!", "%S, %S!"
, hello
, world
, &hello
, &world
) );
}