Skip to content

Commit

Permalink
Merge SVN 4937, 4938
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed Sep 26, 2024
1 parent de3cc03 commit 244735c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cobc/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -6268,7 +6268,7 @@ output_initialize (struct cb_initialize *p)
emit setting for fields that need it (VALUE clause or
special category - in general: not matching cb_default_byte);
similar for cb_default_byte == CB_DEFAULT_BYTE_NONE (-2),
just without the initial huge memset */
just without the initial huge memset */

needs_table_format_value = 0;

Expand All @@ -6289,7 +6289,7 @@ output_initialize (struct cb_initialize *p)
if (p->statement == STMT_INIT_STORAGE) {
output_init_comment_and_source_ref (f);
}
output_initialize_uniform (p->var, f, (unsigned char)c, f->size * f->occurs_max);
output_initialize_uniform (p->var, f, (unsigned char)c, f->occurs_max);
output_initialize_chaining (f, p);
return;
}
Expand Down Expand Up @@ -11889,9 +11889,7 @@ output_initial_values (struct cb_field *f)
continue;
}
x = cb_build_field_reference (p, NULL);
if (p->statement != STMT_INIT_STORAGE) {
output_line ("/* initialize field %s */", p->name);
}
output_line ("/* initialize field %s */", f->name);
output_stmt (cb_build_initialize (x, cb_true, NULL, 1, STMT_INIT_STORAGE, 0));
output_newline ();
}
Expand Down

0 comments on commit 244735c

Please sign in to comment.