Skip to content

Commit

Permalink
Merge pull request #10 from dalins/patch-1
Browse files Browse the repository at this point in the history
Update QDecDouble.cc
  • Loading branch information
semihc committed Sep 20, 2022
2 parents 5b81355 + 433132d commit 31d650e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QDecDouble.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ QDecDouble& QDecDouble::fromDouble(double d)
#if defined(_MSC_VER)
_snprintf(str, MaxStrSize, "%.*g", QDecNumDigits, d);
#else
snprintf(str, MaxStrSize, "%.*g", QDecNumDigits, d);
snprintf(str, MaxStrSize, "%s", qPrintable(QString::number(d, 'g', QDecDoubleDigits)));
#endif

return fromString(str);
Expand Down

0 comments on commit 31d650e

Please sign in to comment.