[Ada] Bounded_Holders: fix a typo
authorArnaud Charlet <charlet@adacore.com>
Tue, 9 Oct 2018 15:05:44 +0000 (15:05 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 9 Oct 2018 15:05:44 +0000 (15:05 +0000)
2018-10-09  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* libgnat/a-coboho.ads (Storage_Element): Fix a typo.

From-SVN: r264970

gcc/ada/ChangeLog
gcc/ada/libgnat/a-coboho.ads

index 518fd0e..41402f6 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-09  Arnaud Charlet  <charlet@adacore.com>
+
+       * libgnat/a-coboho.ads (Storage_Element): Fix a typo.
+
 2018-10-09  Claire Dross  <dross@adacore.com>
 
        * libgnat/a-cfinve.ads: Remove default value for
index 82cd36a..1e812e1 100644 (file)
@@ -88,7 +88,7 @@ private
    pragma Assert (Element_Type'Alignment <= Standard'Maximum_Alignment);
    --  This prevents elements with a user-specified Alignment that is too big
 
-   type Storage_Element is mod System.Storage_Unit;
+   type Storage_Element is mod 2 ** System.Storage_Unit;
    type Storage_Array is array (Positive range <>) of Storage_Element;
    type Holder is record
       Data : Storage_Array (1 .. Max_Size_In_Storage_Elements);