diff --git a/sol/unicode.hpp b/sol/unicode.hpp index ba8d2e76..3a549dd3 100644 --- a/sol/unicode.hpp +++ b/sol/unicode.hpp @@ -147,7 +147,7 @@ namespace sol { if (codepoint <= unicode_detail::last_bmp_value) { er.code_units_size = 1; - er.code_units = std::array{ static_cast(codepoint) }; + er.code_units = std::array{ { static_cast(codepoint) } }; er.error = error_code::ok; } else {