Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
7a51ae04
Unverified
Commit
7a51ae04
authored
Oct 07, 2020
by
Nikita Titov
Committed by
GitHub
Oct 07, 2020
Browse files
fix type casting warning (#3437)
parent
967a7814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
swig/StringArray.hpp
swig/StringArray.hpp
+2
-2
No files found.
swig/StringArray.hpp
View file @
7a51ae04
...
...
@@ -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
(
in
t
num_elements
,
in
t
string_size
)
void
_allocate_strings
(
size_
t
num_elements
,
size_
t
string_size
)
{
for
(
in
t
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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment