]> granicus.if.org Git - python/commitdiff
PyGC_Head: Use "long double" instead of "double" as the worst-case
authorTim Peters <tim.peters@gmail.com>
Thu, 28 Feb 2002 19:38:51 +0000 (19:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 28 Feb 2002 19:38:51 +0000 (19:38 +0000)
alignment gimmick.  David Abrahams notes that the standard "long double"
actually requires stricter alignment than "double" on some Tru64 box.
On my box and yours <wink>, it's the same, so no harm done on most
boxes.

Include/objimpl.h

index e8aad544c6432fb8b2b83a3c3eb1c758d3eeb35e..a616620d5d27908756cf6c0cd9d93b0319113a14 100644 (file)
@@ -272,7 +272,7 @@ typedef union _gc_head {
                union _gc_head *gc_prev;
                int gc_refs;
        } gc;
-       double dummy;  /* force worst-case alignment */
+       long double dummy;  /* force worst-case alignment */
 } PyGC_Head;
 
 extern PyGC_Head _PyGC_generation0;