]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Quell unsigned/signed warning.
authorJames K. Lowden <jklowden@cobolworx.com>
Tue, 28 Jul 2026 13:51:13 +0000 (09:51 -0400)
committerJames K. Lowden <jklowden@cobolworx.com>
Tue, 28 Jul 2026 14:20:51 +0000 (10:20 -0400)
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).

gcc/cobol/lexio.cc

index 39ad4e0ceff92f89e18471f0e9747bf7d04605b4..54b8aa814bc86b51ac1e84a789292ca5a9d617e6 100644 (file)
@@ -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 '/':