diff --git a/test/std-format-test.cc b/test/std-format-test.cc index a95f244e..b0c6abf7 100644 --- a/test/std-format-test.cc +++ b/test/std-format-test.cc @@ -110,7 +110,7 @@ template <> struct std::formatter { char c = get_char(); if (!isdigit(c) || (++iter, get_char()) != '}') throw format_error("invalid format"); - width_arg_id = c - '0'; + width_arg_id = static_cast(c - '0'); ctx.check_arg_id(width_arg_id); return ++iter; }