]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Do not overload int64_t, overload long and long long.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 16 Mar 2025 00:18:01 +0000 (00:18 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 20 Mar 2025 19:51:14 +0000 (19:51 +0000)
Since the type that is ued for int64_t varies between platforms trying
to overload it creates ambiguous or conflicting overloads.

gcc/cobol/ChangeLog:

* cdfval.h (struct cdfval_t): Overload long instead of int64_t.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/cobol/cdfval.h

index 1453f2af5f877b397f9ed3943064bcd4f5ef13ba..4682db8074be066e667debc5d7755efcf3d440b5 100644 (file)
@@ -79,7 +79,7 @@ struct cdfval_t : public cdfval_base_t {
     cdfval_base_t::string = NULL;
     cdfval_base_t::number = value;
   }
-  cdfval_t( int64_t value )
+  cdfval_t( long value )
     : lineno(yylineno), filename(cobol_filename())
   {
     cdfval_base_t::off  = false;