Commit 695781a5 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6595 [PATCH] HPPA: storage/xtradb/os/os0stacktrace.c:88:54: error:...

MDEV-6595 [PATCH] HPPA: storage/xtradb/os/os0stacktrace.c:88:54: error: invalid operands to binary & (have 'void *' and 'long unsigned int')

fix precedence as in the patch from Brian Evans
parent 454037b7
...@@ -85,7 +85,7 @@ os_stacktrace_print( ...@@ -85,7 +85,7 @@ os_stacktrace_print(
caller_address = (void*) uc->uc_mcontext.gregs[REG_RIP] ; caller_address = (void*) uc->uc_mcontext.gregs[REG_RIP] ;
#elif defined(__hppa__) #elif defined(__hppa__)
ucontext_t* uc = (ucontext_t*) ucontext; ucontext_t* uc = (ucontext_t*) ucontext;
caller_address = (void*) uc->uc_mcontext.sc_iaoq[0] & ~0x3UL ; caller_address = (void*) (uc->uc_mcontext.sc_iaoq[0] & ~0x3UL) ;
#elif (defined (__ppc__)) || (defined (__powerpc__)) #elif (defined (__ppc__)) || (defined (__powerpc__))
ucontext_t* uc = (ucontext_t*) ucontext; ucontext_t* uc = (ucontext_t*) ucontext;
caller_address = (void*) uc->uc_mcontext.regs->nip ; caller_address = (void*) uc->uc_mcontext.regs->nip ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment