From baacae3ab460cede766d18a3bb95e774997ddd60 Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Fri, 27 Jan 2012 20:20:32 -0700 Subject: [PATCH] Fix up casts to get rid of some compiler warnings. --- src/lisp/ppc-arch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lisp/ppc-arch.c b/src/lisp/ppc-arch.c index a7267fcef..bda94998c 100644 --- a/src/lisp/ppc-arch.c +++ b/src/lisp/ppc-arch.c @@ -125,7 +125,7 @@ static sigset_t orig_sigmask; void arch_do_displaced_inst(os_context_t * scp, unsigned long orig_inst) { - unsigned int *pc = (unsigned long *) SC_PC(scp); + unsigned int *pc = (unsigned int *) SC_PC(scp); orig_sigmask = scp->uc_sigmask; sigemptyset(&scp->uc_sigmask); @@ -135,7 +135,7 @@ arch_do_displaced_inst(os_context_t * scp, unsigned long orig_inst) *pc = orig_inst; os_flush_icache((os_vm_address_t) pc, sizeof(unsigned int)); - skipped_break_addr = pc; + skipped_break_addr = (unsigned long) pc; /* * Replace the next instruction with a -- GitLab