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 /byterun/startup.c | |
parent | 1517cea772058b0fcbe778d05b8b99c7e6f3b25f (diff) | |
download | ocaml-4c8f23357d3d77ae7683a9ccb7a60ca22e231bf7.tar.gz |
Petites erreurs de types
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1697 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/startup.c')
-rw-r--r-- | byterun/startup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/byterun/startup.c b/byterun/startup.c index a6addb07e2..f75b1e3318 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]; } |