Code quality: Added consistency between int_t and size_t. Fixed warnings for Win64
This commit is contained in:
4
lib/external/rapidjson/to_array.hpp
vendored
4
lib/external/rapidjson/to_array.hpp
vendored
@@ -12,7 +12,7 @@ std::vector<T> to_int_array(rapidjson::Value const & a)
|
||||
{
|
||||
size_t N = a.Size();
|
||||
std::vector<T> res(N);
|
||||
for(size_t i = 0 ; i < N ; ++i) res[i] = a[i].GetInt();
|
||||
for(rapidjson::SizeType i = 0 ; i < N ; ++i) res[i] = a[i].GetInt();
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ std::vector<T> to_float_array(rapidjson::Value const & a)
|
||||
{
|
||||
size_t N = a.Size();
|
||||
std::vector<T> res(N);
|
||||
for(size_t i = 0 ; i < N ; ++i) res[i] = a[i].GetDouble();
|
||||
for(rapidjson::SizeType i = 0 ; i < N ; ++i) res[i] = a[i].GetDouble();
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user