summaryrefslogtreecommitdiff
path: root/src/stem/lib
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-05 21:35:38 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-05 21:35:38 +0100
commit3558f18daf50281ee1cd68cca96cd967dbac04ba (patch)
treecbe73621cdd2f481ed6f985aeb532ca1f7a7ad77 /src/stem/lib
parent893244c8b5272df86da5d333332eec26ae8f15f2 (diff)
downloadTCE-3558f18daf50281ee1cd68cca96cd967dbac04ba.tar.gz
TCE-3558f18daf50281ee1cd68cca96cd967dbac04ba.zip
Everything seems to work : loading a module that displays a message.
Diffstat (limited to 'src/stem/lib')
-rw-r--r--src/stem/lib/bitset.c1
-rw-r--r--src/stem/lib/stdlib.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/stem/lib/bitset.c b/src/stem/lib/bitset.c
index c13a24d..a6d334b 100644
--- a/src/stem/lib/bitset.c
+++ b/src/stem/lib/bitset.c
@@ -30,5 +30,6 @@ uint32_t bitset_firstFree(struct bitset* t) {
}
}
}
+ return (uint32_t) - 1;
}
diff --git a/src/stem/lib/stdlib.c b/src/stem/lib/stdlib.c
index f4ebd33..c5245e7 100644
--- a/src/stem/lib/stdlib.c
+++ b/src/stem/lib/stdlib.c
@@ -1,7 +1,7 @@
#include "stdlib.h"
void *memcpy(void *vd, const void *vs, int count) {
- uint8_t *dest = vd, *src = vs;
+ uint8_t *dest = (uint8_t*)vd, *src = (uint8_t*)vs;
uint32_t f = count % 4, n = count / 4, i;
const uint32_t* s = (uint32_t*)src;
uint32_t* d = (uint32_t*)dest;