aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-07-11 16:22:47 +1000
committerinmarket <andrewh@inmarket.com.au>2015-07-11 16:22:47 +1000
commit64752ab52c61f053c0690cf36c712f4662bccfb1 (patch)
tree8fed314225f32f5bd03510164556ade0810f9301 /src
parenta84f6e0ee723c1ff5935dfaf3d60578bdf7fcbca (diff)
downloaduGFX-64752ab52c61f053c0690cf36c712f4662bccfb1.tar.gz
uGFX-64752ab52c61f053c0690cf36c712f4662bccfb1.tar.bz2
uGFX-64752ab52c61f053c0690cf36c712f4662bccfb1.zip
Small bug fix + doco
Diffstat (limited to 'src')
-rw-r--r--src/gos/gos_raw32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gos/gos_raw32.c b/src/gos/gos_raw32.c
index caacab20..c454a68b 100644
--- a/src/gos/gos_raw32.c
+++ b/src/gos/gos_raw32.c
@@ -685,7 +685,7 @@ gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_
nf = (char *)(t) + sizeof(thread) + stackbase;
memcpy(t+1, (char *)&t - stackbase, stackbase+sizeof(char *));
} else { // Stack grows down
- nf = (char *)(t) + stacksz - (stackbase + sizeof(char *));
+ nf = (char *)(t) + t->size - (stackbase + sizeof(char *));
memcpy(nf, &t, stackbase+sizeof(char *));
}
#elif STACK_DIR_UP