]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sreal: Fix typo in function name
authorJakub Jelinek <jakub@redhat.com>
Thu, 5 Oct 2023 12:28:44 +0000 (14:28 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 5 Oct 2023 12:28:44 +0000 (14:28 +0200)
My earlier version of the ipa_bits removal patch resulted in self-test
failures in sreal.  When debugging it, I was really confused that I couldn't
find verify_arithmetics function in the source.  Turns out it had bad
spelling...

2023-10-05  Jakub Jelinek  <jakub@redhat.com>

* sreal.cc (verify_aritmetics): Rename to ...
(verify_arithmetics): ... this.
(sreal_verify_arithmetics): Adjust caller.

gcc/sreal.cc

index 606a571e3398348c2a46b328136c2ba41d299319..681a8a812cac0d167f4dcbed3fd24aa259046e75 100644 (file)
@@ -323,7 +323,7 @@ sreal_verify_basics (void)
    of given arguments A and B.  */
 
 static void
-verify_aritmetics (int64_t a, int64_t b)
+verify_arithmetics (int64_t a, int64_t b)
 {
   ASSERT_EQ (a, -(-(sreal (a))).to_int ());
   ASSERT_EQ (a < b, sreal (a) < sreal (b));
@@ -356,7 +356,7 @@ sreal_verify_arithmetics (void)
        int a = values[i];
        int b = values[j];
 
-       verify_aritmetics (a, b);
+       verify_arithmetics (a, b);
       }
 }