summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--byterun/compact.c4
-rw-r--r--byterun/startup.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/byterun/compact.c b/byterun/compact.c
index a575e3081..4b75686d5 100644
--- a/byterun/compact.c
+++ b/byterun/compact.c
@@ -212,9 +212,9 @@ void compact_heap (void)
while (Ecolor (q) == 0) q = * (word *) q;
sz = Wosize_ehd (q);
for (i = 1; i < sz; i++){
- if (Field (p,i) != 0) invert_pointer_at (&(Field (p,i)));
+ if (Field (p,i) != 0) invert_pointer_at ((word *) &(Field (p,i)));
}
- invert_pointer_at (pp);
+ invert_pointer_at ((word *) pp);
pp = &Field (p, 0);
}
}
diff --git a/byterun/startup.c b/byterun/startup.c
index a6addb07e..f75b1e331 100644
--- a/byterun/startup.c
+++ b/byterun/startup.c
@@ -58,8 +58,9 @@ static void init_atoms(void)
/* Read the trailer of a bytecode file */
-static unsigned long read_size(unsigned char *p)
+static unsigned long read_size(char * ptr)
{
+ unsigned char * p = (unsigned char *) ptr;
return ((unsigned long) p[0] << 24) + ((unsigned long) p[1] << 16) +
((unsigned long) p[2] << 8) + p[3];
}