PR#5793: integer marshalling is inconsistent between architectures

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13241 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Clerc 2013-01-16 08:35:09 +00:00
parent 5cb2518dd7
commit 2885577f83
2 changed files with 2 additions and 1 deletions

View File

@ -89,6 +89,7 @@ Bug fixes:
- PR#5772: problem with marshaling of mutually-recursive functions
- PR#5775: several bug fixes for tools/pprintast.ml
- PR#5785: misbehaviour with abstracted structural type used as GADT index
- PR#5793: integer marshalling is inconsistent between architectures
- PR#5798: add ARM VFPv2 support for Raspbian (ocamlopt)
- PR#5806: ensure that backtrace tests are always run (testsuite)
- PR#5810: error in switch printing when using -dclambda

View File

@ -369,7 +369,7 @@ static void extern_rec(value v)
} else if (n >= -(1 << 15) && n < (1 << 15)) {
writecode16(CODE_INT16, n);
#ifdef ARCH_SIXTYFOUR
} else if (n < -((intnat)1 << 31) || n >= ((intnat)1 << 31)) {
} else if (n < -((intnat)1 << 30) || n >= ((intnat)1 << 30)) {
writecode64(CODE_INT64, n);
#endif
} else