Skip to content
Snippets Groups Projects
Commit e3fa809d authored by Raymond Toy's avatar Raymond Toy
Browse files

Specify the correct return type for sc_reg.

parent d490020d
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ os_init(const char *argv[], const char *envp[]) ...@@ -159,7 +159,7 @@ os_init(const char *argv[], const char *envp[])
#define __dsisr dsisr #define __dsisr dsisr
#endif #endif
unsigned long * unsigned int *
sc_reg(os_context_t * context, int offset) sc_reg(os_context_t * context, int offset)
{ {
_STRUCT_PPC_THREAD_STATE *state = &context->uc_mcontext->__ss; _STRUCT_PPC_THREAD_STATE *state = &context->uc_mcontext->__ss;
...@@ -243,7 +243,7 @@ sc_reg(os_context_t * context, int offset) ...@@ -243,7 +243,7 @@ sc_reg(os_context_t * context, int offset)
return &context->uc_mcontext->__es.__dsisr; return &context->uc_mcontext->__es.__dsisr;
} }
return (unsigned long *) 0; return (unsigned int *) 0;
} }
#elif defined(__i386__) #elif defined(__i386__)
#if __DARWIN_UNIX03 #if __DARWIN_UNIX03
......
...@@ -36,7 +36,7 @@ typedef int os_vm_prot_t; ...@@ -36,7 +36,7 @@ typedef int os_vm_prot_t;
#endif #endif
#ifdef __ppc__ #ifdef __ppc__
unsigned long *sc_reg(os_context_t *, int); unsigned int *sc_reg(os_context_t *, int);
#else #else
int *sc_reg(os_context_t *, int); int *sc_reg(os_context_t *, int);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment