diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 13:13:33 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 13:13:33 +0000 |
commit | 4c8f23357d3d77ae7683a9ccb7a60ca22e231bf7 (patch) | |
tree | 7297c1c856b7c32e326815386f4596e49d45313d | |
parent | 1517cea772058b0fcbe778d05b8b99c7e6f3b25f (diff) |
Petites erreurs de types
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1697 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | byterun/compact.c | 4 | ||||
-rw-r--r-- | byterun/startup.c | 3 |
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]; } |