Skip to content

Commit

Permalink
🐛 silenced from_chars error on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarrr committed Nov 28, 2024
1 parent a3fb685 commit d2e3024
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ashura/engine/views.h
Original file line number Diff line number Diff line change
Expand Up @@ -2079,9 +2079,8 @@ struct ScalarDragBox : View

case ScalarInputType::f32:
{
f32 value = 0;
auto [ptr, ec] =
std::from_chars(first, last, value, std::chars_format::fixed);
f32 value = 0;
auto [ptr, ec] = std::from_chars(first, last, value);
if (ec != std::errc{} || value < styling.min.f32 ||
value > styling.max.f32)
{
Expand Down

0 comments on commit d2e3024

Please sign in to comment.