]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR modula2/122009: ldtoa_ldtoa correct parameter type from int to bool
authorGaius Mulley <gaiusmod2@gmail.com>
Wed, 1 Oct 2025 22:04:56 +0000 (23:04 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Wed, 1 Oct 2025 22:04:56 +0000 (23:04 +0100)
This is an obvious fix which corrects a parameter type so that it matches
the prototype.

gcc/m2/ChangeLog:

PR modula2/122009
* pge-boot/Gldtoa.cc (ldtoa_ldtoa): Change int to bool for
parameter sign.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/pge-boot/Gldtoa.cc

index 0a43de0fa1ae9f90d8c1088ffdd5383d941225a3..9fa2fd2745db599e73d27874f1da49d06c2a1aff 100644 (file)
@@ -63,7 +63,7 @@ ldtoa_strtold (void *s, bool *error)
 }
 
 char *
-ldtoa_ldtoa (long double d, int mode, int ndigits, int *decpt, int *sign)
+ldtoa_ldtoa (long double d, int mode, int ndigits, int *decpt, bool *sign)
 {
   char format[50];
   char *p;