Skip to content

Commit

Permalink
Fix the error when compiled using vs2013
Browse files Browse the repository at this point in the history
The error message for the original codes is: unary minus operator applied to unsigned type, result still unsigned. Added static casting to eliminate this message.
  • Loading branch information
blackball committed Jul 24, 2015
1 parent 1eaf180 commit fc50f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/internal/dtoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buff
kappa--;
if (p2 < delta) {
*K += kappa;
GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-kappa]);
GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-static_cast<int>(kappa)]);
return;
}
}
Expand Down

0 comments on commit fc50f10

Please # to comment.