commit c5cbd1b6026ce95465ca21e941465467e5d1f020 Author: Felix Janda Date: Fri Apr 26 12:21:49 2024 -0400 [unwind] replace LONG_LONG_MAX by the portable LLONG_MAX This fixes a compilation error on systems with the musl c library. diff --git a/torch/csrc/profiler/unwind/unwind.cpp b/torch/csrc/profiler/unwind/unwind.cpp index f3fbde151b..13005ac26b 100644 --- a/torch/csrc/profiler/unwind/unwind.cpp +++ b/torch/csrc/profiler/unwind/unwind.cpp @@ -114,8 +114,8 @@ static const char* process_name() { } struct Version { - uint64_t adds_ = LONG_LONG_MAX; - uint64_t subs_ = LONG_LONG_MAX; + uint64_t adds_ = LLONG_MAX; + uint64_t subs_ = LLONG_MAX; }; struct UnwindCache {