vcpkg/ports/libtorch/fix-calculate-minloglevel.patch
Jia Yue Hua 683c1dfd2d
[glog] update to 0.7.0 (#37071)
- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md)
- [X] SHA512s are updated for each updated download
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.
2024-03-05 02:23:38 -08:00

14 lines
466 B
Diff

diff --git a/c10/util/Logging.cpp b/c10/util/Logging.cpp
index 306dac5..dca802c 100644
--- a/c10/util/Logging.cpp
+++ b/c10/util/Logging.cpp
@@ -272,7 +272,7 @@ void UpdateLoggingLevelsFromFlags() {
void ShowLogInfoToStderr() {
FLAGS_logtostderr = 1;
- FLAGS_minloglevel = std::min(FLAGS_minloglevel, google::GLOG_INFO);
+ FLAGS_minloglevel = std::min(FLAGS_minloglevel, static_cast<decltype(FLAGS_minloglevel)>(google::GLOG_INFO));
}
} // namespace c10