]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Refine type of a counter variable from Integer to Natural
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 8 Jan 2021 11:10:51 +0000 (12:10 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 4 May 2021 09:17:35 +0000 (05:17 -0400)
gcc/ada/

* pprint.adb (List_Name_Count): Change type from Integer to
Natural.

gcc/ada/pprint.adb

index 5091a862fe667a3507aa2d9b44ec16497a7bd41d..0360e94c0d8f2e323f2b0cd8f0becc32399cdb73 100644 (file)
@@ -36,7 +36,7 @@ with Uintp;   use Uintp;
 
 package body Pprint is
 
-   List_Name_Count : Integer := 0;
+   List_Name_Count : Natural := 0;
    --  Counter used to prevent infinite recursion while computing name of
    --  complex expressions.