More MSVC warnings fixes

This commit is contained in:
Olivier Goffart 2021-07-01 14:15:30 +02:00
parent c25d41526a
commit 63cf84d21f
3 changed files with 4 additions and 4 deletions

View file

@ -350,7 +350,7 @@ SCENARIO("Invoke callback")
auto instance = result->create();
REQUIRE(instance->set_callback("foo", [](auto args) {
SharedString arg1 = *args[0].to_string();
int arg2 = *args[1].to_number();
double arg2 = *args[1].to_number();
std::string res = std::string(arg1) + ":" + std::to_string(arg2);
return Value(SharedString(res));
}));