Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiFedartsou committed Oct 1, 2022
1 parent 87db480 commit 258d656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/util/json_renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <string>
#include <vector>

#include <fmt/compile.h>

namespace osrm
{
namespace util
Expand Down Expand Up @@ -55,7 +57,7 @@ template <typename Out> struct Renderer
void operator()(const Number &number)
{
char buffer[MAX_FLOAT_STRING_LENGTH] = {'\0'};
ieee754::dtoa_milo(number.value, buffer);
fmt::format_to(buffer, FMT_COMPILE("{}"), number.value);

// Trucate to 10 decimal places
int pos = 0;
Expand Down

0 comments on commit 258d656

Please sign in to comment.