]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR modula2/116918 -fswig correct syntax fixup
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 4 Oct 2024 14:30:10 +0000 (15:30 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 4 Oct 2024 14:30:10 +0000 (15:30 +0100)
This patch adds a missing % escape in DoCheckUnbounded.

gcc/m2/ChangeLog:

PR modula2/116918
* gm2-compiler/M2Swig.mod (DoCheckUnbounded): Escape
the % character used in array_functions with %%.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/M2Swig.mod

index b7f34426adb8008ef33dce0dd6950b41bf0a0bfe..7ef8ff36da77ba499543fdb801dd1740b48b06a2 100644 (file)
@@ -887,7 +887,7 @@ BEGIN
          fprintf0(f, ') };\n') ;
          IF typeUnique
          THEN
-            fprintf0(f, '%array_functions(') ;
+            fprintf0(f, '%%array_functions(') ;
             DoType(type) ;
             fprintf0(f, ', ') ;
             DoType(type) ;