Skip to content

Commit

Permalink
Change std::stoul to std::stoull in onnx_parser (#3153)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjankovi authored and causten committed Jun 26, 2024
1 parent 6c9f0ce commit 7e510bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onnx/onnx_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,11 @@ literal onnx_parser::parse_tensor(const onnx::TensorProto& t) const

if(num_data_fields > 1) // if offset field is present
{
offset = std::stoul(t.external_data().at(1).value());
offset = std::stoull(t.external_data().at(1).value());
}
if(num_data_fields > 2) // if nbytes field is present
{
nbytes = std::stoul(t.external_data().at(2).value());
nbytes = std::stoull(t.external_data().at(2).value());
}
std::vector<char> raw_buffer;
if(not external_data_path.empty())
Expand Down

0 comments on commit 7e510bc

Please sign in to comment.