summaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-15 00:08:41 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-15 00:08:41 +0200
commit3a931fd6e0d8212fa3d84554cb35f55e62f2dc52 (patch)
tree936e8c83f99d58b73fb49a41516b75fa5aa8c298 /sysdeps/mach
parent5288bf31ee255aafe394304074c1ec6ccb290448 (diff)
parent769e2108a0f5fc49eff9f3addbaf5f0646bcb253 (diff)
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/libpthread
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/ia32/pt-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/ia32/pt-setup.c b/sysdeps/mach/hurd/ia32/pt-setup.c
index ba438d6..7eb223c 100644
--- a/sysdeps/mach/hurd/ia32/pt-setup.c
+++ b/sysdeps/mach/hurd/ia32/pt-setup.c
@@ -64,7 +64,7 @@ stack_setup (struct __pthread *thread,
{
/* And then the call frame. */
top -= 2;
- top = (uintptr_t) top & ~0xf;
+ top = (uintptr_t *) ((uintptr_t) top & ~0xf);
top[1] = (uintptr_t) arg; /* Argument to START_ROUTINE. */
top[0] = (uintptr_t) start_routine;
*--top = 0; /* Fake return address. */