From bde95eca04c7b683146460ffaca0e757dabca115 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Thu, 10 Jul 2014 16:49:20 +0200 Subject: [PATCH] Writer::WriteUint: add cast to hide warning C4244 on MSVC --- include/rapidjson/writer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/writer.h b/include/rapidjson/writer.h index 979b781..4fd0427 100644 --- a/include/rapidjson/writer.h +++ b/include/rapidjson/writer.h @@ -185,7 +185,7 @@ protected: char buffer[10]; char *p = buffer; do { - *p++ = (u % 10) + '0'; + *p++ = char(u % 10) + '0'; u /= 10; } while (u > 0);