]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libbacktrace: add cast to avoid warning
authorIan Lance Taylor <iant@golang.org>
Thu, 18 Jul 2024 00:58:56 +0000 (17:58 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Jul 2024 00:59:41 +0000 (17:59 -0700)
* print.c (print_syminfo_callback): Add cast to avoid warning.

libbacktrace/print.c

index 70f5a93c49de2660034dbc4a33790c5bf3f63047..d4637af9a4fda6f4df37e01cb49a9781000621ee 100644 (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.  */