summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-05-28 15:05:56 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-05-28 15:05:56 +0000
commit166f3298df5d0fd89ed2b155234dcbcb2d045975 (patch)
tree6dfeadc80b34acd085cd10100626c9435403bd6b
parentc1bb768e5ac8e1d32fe9950924c351313f60df64 (diff)
Missing parenthesis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@767 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index 77fdb06ec9..b6e978f743 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -120,7 +120,7 @@ int create_thread(void* fp, void* sp, int stk_size)
stctx(ctxp);
/* Subtract 4 to leave room for the PR push in ldctx()
Align it on an even 32 bit boundary */
- ctxp->regs.sp = (void*)(((unsigned int)sp + stk_size - 4) & ~3;
+ ctxp->regs.sp = (void*)(((unsigned int)sp + stk_size - 4) & ~3);
ctxp->regs.pr = fp;
}
return 0;