libbacktrace: add cast to avoid warning

* print.c (print_syminfo_callback): Add cast to avoid warning.
This commit is contained in:
Ian Lance Taylor 2024-07-17 17:58:56 -07:00
parent 144b6099cd
commit 93c54caa64

View File

@ -77,7 +77,7 @@ static void print_syminfo_callback (void *data, uintptr_t pc,
fprintf (pdata->f, "0x%lx ???\n\t%s+0x%lx:0\n",
(unsigned long) pc,
symname,
pc - symval);
(unsigned long) (pc - symval));
}
/* Print one level of a backtrace. */