]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Repair printf format of size_t.
authorRobert Dubner <rdubner@symas.com>
Tue, 1 Jul 2025 16:02:21 +0000 (12:02 -0400)
committerRobert Dubner <rdubner@symas.com>
Tue, 1 Jul 2025 16:09:03 +0000 (12:09 -0400)
gcc/cobol/ChangeLog:

* parse.y: printf() of size_t is %zu, not %ld.

gcc/cobol/parse.y

index 57a41bbca7183a2c29f02fcf4702080e81ea9d66..74637c9641f567da28b520c8d158c8d398da19a3 100644 (file)
@@ -12404,7 +12404,7 @@ numstr2i( const char input[], radix_t radix ) {
     return output;
   }
   if( erc == -1 ) {
-    yywarn("'%s' was accepted as %ld", input, integer);
+    yywarn("'%s' was accepted as %zu", input, integer);
   }
   return output;
 }