Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e43cdb3

Browse files
committedFeb 7, 2025·
Fix for C4267 warning
1 parent f3b6c56 commit e43cdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎onnxruntime/core/providers/openvino/openvino_provider_factory.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ std::string ParsePrecision(const ProviderOptions& provider_options, std::string&
148148
<< "Update the 'device_type' to specified types 'CPU', 'GPU', 'GPU.0', "
149149
<< "'GPU.1', 'NPU' or from"
150150
<< " HETERO/MULTI/AUTO options and set 'precision' separately. \n";
151-
int delimit = device_type.find("_");
151+
auto delimit = device_type.find("_");
152152
device_type = device_type.substr(0, delimit);
153153
return device_type.substr(delimit + 1);
154154
}

0 commit comments

Comments
 (0)
Please sign in to comment.