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
diff options
context:
space:
mode:
Diffstat (limited to 'test/perftest/misctest.cpp')
-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];