Skip to content

Commit

Permalink
Fix some warnings on mips32.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Feb 19, 2014
1 parent d562f82 commit 07e74e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mono/metadata/sgen-archdep.h
Expand Up @@ -135,8 +135,12 @@
#define USE_MONO_CTX
#define ARCH_NUM_REGS 32

#define ARCH_SIGCTX_SP(ctx) (UCONTEXT_GREGS((ctx))[29])
#define ARCH_SIGCTX_IP(ctx) (UCONTEXT_REG_PC((ctx)))
/*
* These casts are necessary since glibc always makes the
* gregs 64-bit values in userland.
*/
#define ARCH_SIGCTX_SP(ctx) ((gsize) UCONTEXT_GREGS((ctx))[29])
#define ARCH_SIGCTX_IP(ctx) ((gsize) UCONTEXT_REG_PC((ctx)))

#elif defined(__s390x__)

Expand Down

0 comments on commit 07e74e1

Please sign in to comment.