Skip to content

Commit ed24238

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

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
@@ -2965,7 +2965,7 @@ static SCHAR blr_print_char(gds_ctl* control)
29652965
else if (control->ctl_language)
29662966
blr_format(control, "chr(%d),", (int) v);
29672967
else
2968-
blr_format(control, "%d,", (int) c);
2968+
blr_format(control, "%d,", (int) v);
29692969

29702970
return c;
29712971
}

0 commit comments

Comments
 (0)