Skip to content

Commit ad3a948

Browse files
authored
Merge pull request #183 from 8-byte/master
Warnings generated on size_t values being passed into integer parameters.
2 parents d5abf7b + 4a6ae69 commit ad3a948

File tree

3 files changed

+539
-539
lines changed

3 files changed

+539
-539
lines changed

include/cppflow/model.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ namespace cppflow {
179179
}
180180

181181
TF_SessionRun(this->session.get(), NULL,
182-
inp_ops.data(), inp_val.data(), inputs.size(),
183-
out_ops.data(), out_val.get(), outputs.size(),
182+
inp_ops.data(), inp_val.data(), static_cast<int>(inputs.size()),
183+
out_ops.data(), out_val.get(), static_cast<int>(outputs.size()),
184184
NULL, 0,NULL , context::get_status());
185185
status_check(context::get_status());
186186

0 commit comments

Comments
 (0)