From aceb5a69482078a1fb0773fcff1918cf6e998e42 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Sun, 20 Oct 2024 22:03:25 -0300 Subject: [PATCH] Fix #8288 - GPRE generated code is incompatible with GCC 14.2. --- src/gpre/c_cxx.cpp | 2 +- src/yvalve/gds.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpre/c_cxx.cpp b/src/gpre/c_cxx.cpp index 8db3968e49..1bf5c01abd 100644 --- a/src/gpre/c_cxx.cpp +++ b/src/gpre/c_cxx.cpp @@ -2016,7 +2016,7 @@ static SSHORT gen_event_block(act* action) int ident = CMP_next_ident(); init->nod_arg[2] = (gpre_nod*)(IPTR)ident; - printa(0, "static %schar\n *isc_%da, *isc_%db;", CONST_STR, ident, ident); + printa(0, "static unsigned char\n *isc_%da, *isc_%db;", ident, ident); printa(0, "static short\n isc_%dl;", ident); const gpre_nod* list = init->nod_arg[1]; diff --git a/src/yvalve/gds.cpp b/src/yvalve/gds.cpp index d0a280d766..765b36d585 100644 --- a/src/yvalve/gds.cpp +++ b/src/yvalve/gds.cpp @@ -2971,7 +2971,7 @@ static SCHAR blr_print_char(gds_ctl* control) else if (control->ctl_language) blr_format(control, "chr(%d),", (int) v); else - blr_format(control, "%d,", (int) c); + blr_format(control, "%d,", (int) v); return c; }