aboutsummaryrefslogtreecommitdiff
path: root/flang/runtime/stop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang/runtime/stop.cpp')
-rw-r--r--flang/runtime/stop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/runtime/stop.cpp b/flang/runtime/stop.cpp
index f8457e1..a7be8a0 100644
--- a/flang/runtime/stop.cpp
+++ b/flang/runtime/stop.cpp
@@ -162,7 +162,7 @@ static void PrintBacktrace() {
// TODO: Need to parse DWARF information to print function line numbers
constexpr int MAX_CALL_STACK{999};
void *buffer[MAX_CALL_STACK];
- int nptrs{backtrace(buffer, MAX_CALL_STACK)};
+ int nptrs{(int)backtrace(buffer, MAX_CALL_STACK)};
if (char **symbols{backtrace_symbols(buffer, nptrs)}) {
for (int i = 0; i < nptrs; i++) {