Skip to content

Commit

Permalink
fix type casting warning (#3437)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Oct 7, 2020
1 parent 967a781 commit 7a51ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swig/StringArray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ class StringArray
* @param num_elements Number of strings to store in the array.
* @param string_size The size of each string in the array.
*/
void _allocate_strings(int num_elements, int string_size)
void _allocate_strings(size_t num_elements, size_t string_size)
{
for (int i = 0; i < num_elements; ++i)
for (size_t i = 0; i < num_elements; ++i)
{
// Leave space for \0 terminator:
_array[i] = new (std::nothrow) char[string_size + 1];
Expand Down

0 comments on commit 7a51ae0

Please sign in to comment.