Skip to content

Fixed ISO C99 warning introduced in #1705 #1787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ocaml/runtime/extern.c
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,6 @@ static void add_to_long_value(value *v, intnat x) {
undo this addition. */
intnat reachable_words_once(value root, intnat identifier, value sizes_by_root_id,
intnat *shared_size) {
CAMLassert(identifier >= 0);
struct extern_item * sp;
intnat size;
uintnat mark = Invalid, new_mark;
Expand All @@ -1209,6 +1208,8 @@ intnat reachable_words_once(value root, intnat identifier, value sizes_by_root_i
sp = extern_stack;
size = 0;

CAMLassert(identifier >= 0);

while (1) {
if (Is_long(v)) {
/* Tagged integers contribute 0 to the size, nothing to do */
Expand Down