File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ void Value::CommentInfo::setComment(const char* text, size_t len) {
151
151
text[0 ] == ' \0 ' || text[0 ] == ' /' ,
152
152
" in Json::Value::setComment(): Comments must start with /" );
153
153
// It seems that /**/ style comments are acceptable as well.
154
- comment_ = duplicateStringValue (text, len);
154
+ comment_ = duplicateStringValue (text, static_cast < unsigned int >( len) );
155
155
}
156
156
157
157
// //////////////////////////////////////////////////////////////////
@@ -718,7 +718,7 @@ bool Value::asBool() const {
718
718
case uintValue:
719
719
return value_.uint_ ? true : false ;
720
720
case realValue:
721
- return value_.real_ ? true : false ;
721
+ return static_cast < bool >( value_.real_ ) ? true : false ;
722
722
default :
723
723
break ;
724
724
}
@@ -1049,8 +1049,8 @@ bool Value::removeIndex(ArrayIndex index, Value* removed) {
1049
1049
ArrayIndex oldSize = size ();
1050
1050
// shift left all items left, into the place of the "removed"
1051
1051
for (ArrayIndex i = index ; i < (oldSize - 1 ); ++i){
1052
- CZString key (i);
1053
- (*value_.map_ )[key ] = (*this )[i + 1 ];
1052
+ CZString indexKey (i);
1053
+ (*value_.map_ )[indexKey ] = (*this )[i + 1 ];
1054
1054
}
1055
1055
// erase the last one ("leftover")
1056
1056
CZString keyLast (oldSize - 1 );
You can’t perform that action at this time.
0 commit comments