[gcc r17-2753] cobol: Quell unsigned/signed warning.

"James K. Lowden via Gcc-cvs" <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:dfc1acffcd52d0ae0fbc155f221ea7091a2f39b9

commit r17-2753-gdfc1acffcd52d0ae0fbc155f221ea7091a2f39b9
Author: James K. Lowden <[email protected]>
Date:   Tue Jul 28 09:51:13 2026 -0400

    cobol: Quell unsigned/signed warning.
    
    Assignment of 0x8D to char provoked warning diagnostic.  Cast to char.
    
    gcc/cobol/ChangeLog:
    
            * lexio.cc (cdftext::free_form_reference_format): Assign from char(0x8D).

Diff:
---
 gcc/cobol/lexio.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cobol/lexio.cc b/gcc/cobol/lexio.cc
index 39ad4e0ceff9..54b8aa814bc8 100644
--- a/gcc/cobol/lexio.cc
+++ b/gcc/cobol/lexio.cc
@@ -1802,7 +1802,7 @@ cdftext::free_form_reference_format( int input,
          * Use the weird input value to signify fixed format, information
          * otherwise not available and not significant to the parser.
          */
-        if( format.top().is_fixed() ) *indcol = 0x8D;
+        if( format.top().is_fixed() ) *indcol = char(0x8D);
         break;
       case '*':
       case '/':
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.