Skip to content

Commit bbee529

Browse files
committed
Fix #8288 - GPRE generated code is incompatible with GCC 14.2.
1 parent bf7383d commit bbee529

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gpre/c_cxx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ static SSHORT gen_event_block(act* action)
20162016
int ident = CMP_next_ident();
20172017
init->nod_arg[2] = (gpre_nod*)(IPTR)ident;
20182018

2019-
printa(0, "static %schar\n *isc_%da, *isc_%db;", CONST_STR, ident, ident);
2019+
printa(0, "static unsigned char\n *isc_%da, *isc_%db;", ident, ident);
20202020
printa(0, "static short\n isc_%dl;", ident);
20212021

20222022
const gpre_nod* list = init->nod_arg[1];

src/yvalve/gds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ static SCHAR blr_print_char(gds_ctl* control)
28792879
else if (control->ctl_language)
28802880
blr_format(control, "chr(%d),", (int) v);
28812881
else
2882-
blr_format(control, "%d,", (int) c);
2882+
blr_format(control, "%d,", (int) v);
28832883

28842884
return c;
28852885
}

0 commit comments

Comments
 (0)