]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Update the inactive GMP variant of Big_Integers
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 19 Oct 2021 15:31:26 +0000 (17:31 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 25 Oct 2021 15:07:21 +0000 (15:07 +0000)
gcc/ada/

* libgnat/a-nbnbin__gmp.adb (From_String): Fix predicate
mismatch between subprogram declaration and body.

gcc/ada/libgnat/a-nbnbin__gmp.adb

index 880e9a3c53d3ebb73643e444e0875038f9f7fe0c..1516f492b0dcb8694b276d78b74f8321f8eaa36b 100644 (file)
@@ -327,7 +327,7 @@ package body Ada.Numerics.Big_Numbers.Big_Integers is
    -- From_String --
    -----------------
 
-   function From_String (Arg : String) return Big_Integer is
+   function From_String (Arg : String) return Valid_Big_Integer is
       function mpz_set_str
         (this : access mpz_t;
          str  : System.Address;