Skip to content

Commit

Permalink
APREPRO: Let format() command work with empty format specifier to giv…
Browse files Browse the repository at this point in the history
…e full precision output
  • Loading branch information
gdsjaar committed Sep 12, 2024
1 parent 590d97b commit ffe660a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/seacas/libraries/aprepro_lib/apr_builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ namespace SEAMS {

const char *do_format(double var, char *format)
{
auto tmpstr = fmt::sprintf(format, var);
auto tmpstr = std::strlen(format) > 0 ? fmt::sprintf(format, var) : fmt::format("{}", var);
char *tmp;
new_string(tmpstr.c_str(), &tmp);
return tmp;
Expand Down

0 comments on commit ffe660a

Please sign in to comment.