diff options
author | Roland McGrath <roland@gnu.org> | 1994-09-04 19:29:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-09-04 19:29:12 +0000 |
commit | be111074c3643903a1f9c686c95977b65062dfd7 (patch) | |
tree | b54579b9a85d5f58ff9d85dabbf30c57372076d3 /sysdeps | |
parent | 9b17694d909b4de570e7fe8f73f637929816b598 (diff) |
(MACHINE_THREAD_STATE_SET_{SP,PC}): Cast args to unsigned long int.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/thread_state.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/mach/thread_state.h b/sysdeps/mach/thread_state.h index 9deb9e2349..5651fc4eaa 100644 --- a/sysdeps/mach/thread_state.h +++ b/sysdeps/mach/thread_state.h @@ -26,15 +26,16 @@ Cambridge, MA 02139, USA. */ macros, or just define PC and SP to the register names. */ #ifndef MACHINE_THREAD_STATE_SET_PC -#define MACHINE_THREAD_STATE_SET_PC(ts, pc) ((ts)->PC = (pc)) +#define MACHINE_THREAD_STATE_SET_PC(ts, pc) \ + ((ts)->PC = (unsigned long int) (pc)) #endif #ifndef MACHINE_THREAD_STATE_SET_SP #ifdef STACK_GROWTH_UP #define MACHINE_THREAD_STATE_SET_SP(ts, stack, size) \ - ((ts)->SP = (stack)) + ((ts)->SP = (unsigned long int) (stack)) #else #define MACHINE_THREAD_STATE_SET_SP(ts, stack, size) \ - ((ts)->SP = (stack) + (size)) + ((ts)->SP = (unsiged long int) (stack) + (size)) #endif #endif |