* g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.
authorRichard Henderson <rth@redhat.com>
Fri, 21 Dec 2001 18:03:25 +0000 (10:03 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 21 Dec 2001 18:03:25 +0000 (10:03 -0800)
From-SVN: r48246

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C

index f55a4f24de22d75348cce4a2c418fbb1ab1b7b8b..157c1a838726638b9d57ddd7a215240e581de25e 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-21  Richard Henderson  <rth@redhat.com>
+
+       * g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.
+
 2001-12-20  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c-torture/compile/20011218-1.c: New test.
index 806856f24b176965f9e6970ea8948b71819e04ec..19ec3c1f0b6a13e773ce4747a4539caa09635aba 100644 (file)
@@ -36,7 +36,7 @@ extern "C" void *malloc (size_t size)
     return 0;
 
   p->size = size;
-  size = (size + __alignof__(object) + 1) & - __alignof__(object);
+  size = (size + __alignof__(object) - 1) & - __alignof__(object);
   pos += size + sizeof(object);
 
   // Verify that we didn't run out of memory before getting initialized.