Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormiloyip <miloyip@gmail.com>2015-04-18 15:30:40 +0300
committermiloyip <miloyip@gmail.com>2015-04-18 16:31:56 +0300
commitaa61b08d11b84921e595aa51767726c1bd6f8233 (patch)
treebd51183da04097259aaf01bbdabb0861f0f3568c /test
parent0e8bbe5e3ef375e7f052f556878be0bd79e9062d (diff)
Fix warnings for misctest
Diffstat (limited to 'test')
-rw-r--r--test/perftest/misctest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/perftest/misctest.cpp b/test/perftest/misctest.cpp
index 3edaddae..6b276e44 100644
--- a/test/perftest/misctest.cpp
+++ b/test/perftest/misctest.cpp
@@ -768,7 +768,7 @@ template <typename Writer>
void itoa_Writer_StringBufferVerify() {
rapidjson::StringBuffer sb;
Writer writer(sb);
- for (int j = 0; j < randvalCount; j++) {
+ for (size_t j = 0; j < randvalCount; j++) {
char buffer[32];
sprintf(buffer, "%d", randval[j]);
writer.WriteInt(randval[j]);
@@ -780,7 +780,7 @@ void itoa_Writer_StringBufferVerify() {
template <typename Writer>
void itoa_Writer_InsituStringStreamVerify() {
Writer writer;
- for (int j = 0; j < randvalCount; j++) {
+ for (size_t j = 0; j < randvalCount; j++) {
char buffer[32];
sprintf(buffer, "%d", randval[j]);
char buffer2[32];