Silence cast warning on 32-bit platforms
authorMartin Willi <martin@revosec.ch>
Fri, 13 Jul 2012 11:43:16 +0000 (13:43 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 13 Jul 2012 11:43:16 +0000 (13:43 +0200)
src/libstrongswan/utils/backtrace.c

index 04b50d5..a6bf877 100644 (file)
@@ -264,7 +264,7 @@ static void print_sourceline(FILE *file, char *filename, void *ptr)
        bfd_entry_t *entry;
        bfd_find_data_t data = {
                .file = file,
-               .vma = (bfd_vma)ptr,
+               .vma = (uintptr_t)ptr,
        };
        bool old = FALSE;