Skip to content

Commit

Permalink
Merge branch 'skottmckay/AddHelperForErrnoInfo' of https://github.com…
Browse files Browse the repository at this point in the history
…/microsoft/onnxruntime into skottmckay/AddHelperForErrnoInfo
  • Loading branch information
skottmckay committed Apr 17, 2024
2 parents 331209c + fdc27a2 commit 0f0e407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/platform/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ std::pair<int, std::string> GetErrnoInfo() {
#else
// strerror_r return type differs by platform.
auto ret = strerror_r(err, buf, sizeof(buf));
if (std::is_same_v<decltype(ret), int>) { // POSIX returns int
if constexpr (std::is_same_v<decltype(ret), int>) { // POSIX returns int
msg = ret == 0 ? buf : "Failed to get error message";
} else {
// GNU returns char*
Expand Down

0 comments on commit 0f0e407

Please sign in to comment.