Skip to content

Commit aceb5a6

Browse files
committed
Fix #8288 - GPRE generated code is incompatible with GCC 14.2.
1 parent 6214b9d commit aceb5a6

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
@@ -2971,7 +2971,7 @@ static SCHAR blr_print_char(gds_ctl* control)
29712971
else if (control->ctl_language)
29722972
blr_format(control, "chr(%d),", (int) v);
29732973
else
2974-
blr_format(control, "%d,", (int) c);
2974+
blr_format(control, "%d,", (int) v);
29752975

29762976
return c;
29772977
}

0 commit comments

Comments
 (0)