Skip to content

Commit

Permalink
Fix a253205: division by zero when attempting to format some short cu…
Browse files Browse the repository at this point in the history
…rrencies
  • Loading branch information
rubidium42 committed Feb 17, 2024
1 parent 03e3553 commit 360fe8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ void InitializeNumberFormats()
loaded_number_abbreviations = !res.has_value();
}
if (!loaded_number_abbreviations) ParseNumberAbbreviations(_number_abbreviations, _current_language->number_abbreviations);
_number_abbreviations.emplace_back(0, _number_format_separators);
_number_abbreviations.emplace_back(1, _number_format_separators);
}

/**
Expand Down

0 comments on commit 360fe8b

Please sign in to comment.