summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-09-04 19:29:12 +0000
committerRoland McGrath <roland@gnu.org>1994-09-04 19:29:12 +0000
commitbe111074c3643903a1f9c686c95977b65062dfd7 (patch)
treeb54579b9a85d5f58ff9d85dabbf30c57372076d3 /sysdeps
parent9b17694d909b4de570e7fe8f73f637929816b598 (diff)
(MACHINE_THREAD_STATE_SET_{SP,PC}): Cast args to unsigned long int.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/thread_state.h7
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