ppdep-fix-else-handling
authorPascal Packaging Team <pkg-pascal-devel@lists.alioth.debian.org>
Wed, 8 Feb 2017 09:53:35 +0000 (09:53 +0000)
committerGraham Inggs <ginggs@debian.org>
Wed, 8 Feb 2017 09:53:35 +0000 (09:53 +0000)
Gbp-Pq: Name ppdep-fix-else-handling.patch

fpcsrc/utils/ppdep.pp

index 1a3204ba69314f2c1a16790157cff5c1b23a49b1..79bd8da870e1915bfb31850e62c7c2ecd259f7ec 100644 (file)
@@ -344,7 +344,7 @@ begin
                         hs^:='';
                       end
                     else
-                     if (Copy(hs^,2,6)='$ELSE') then
+                     if (Copy(hs^,2,5)='$ELSE') then
                       begin
                         skip[level]:=skip[level-1] or (not skip[level]);
                         hs^:='';