summaryrefslogtreecommitdiffstats
path: root/byterun/extern.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/extern.c')
-rw-r--r--byterun/extern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/extern.c b/byterun/extern.c
index 434412b3d..2faeb9e85 100644
--- a/byterun/extern.c
+++ b/byterun/extern.c
@@ -376,10 +376,10 @@ static void extern_rec(value v)
}
return;
}
- if ((char *) v >= code_area_start && (char *) v < code_area_end) {
+ if ((char *) v >= caml_code_area_start && (char *) v < caml_code_area_end) {
if (!extern_closures)
extern_invalid_argument("output_value: functional value");
- writecode32(CODE_CODEPOINTER, (char *) v - code_area_start);
+ writecode32(CODE_CODEPOINTER, (char *) v - caml_code_area_start);
writeblock((char *) caml_code_checksum(), 16);
return;
}