Skip to content

Commit

Permalink
Work on Ryu.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Jul 28, 2018
1 parent 606b7b3 commit 73fea34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tao/json/external/ryu.hpp
Expand Up @@ -828,7 +828,7 @@ namespace tao
std::memcpy(result + index + olength - i - 3, DIGIT_TABLE + c1, 2);
std::memcpy(result + index + olength - i - 5, DIGIT_TABLE + d0, 2);
std::memcpy(result + index + olength - i - 7, DIGIT_TABLE + d1, 2);
result[index + olength - i - 8] = (char) ('0' + output2);
result[index + olength - i - 8] = char( '0' + output2 );
i += 9;
}
output2 = std::uint32_t( output );
Expand Down Expand Up @@ -861,7 +861,7 @@ namespace tao
result[index] = DIGIT_TABLE[c];
} else {
// Print the leading decimal digit.
result[index] = (char) ('0' + output2);
result[index] = char( '0' + output2 );
}
#else
// Print decimal digits after the decimal point.
Expand Down

0 comments on commit 73fea34

Please sign in to comment.