Thomas Heller <[EMAIL PROTECTED]> added the comment:

Does the following patch fix the test failure with MingW?

<patch>
Index: cfield.c
===================================================================
--- cfield.c    (revision 66611)
+++ cfield.c    (working copy)
@@ -65,10 +65,10 @@
        }
        if (bitsize /* this is a bitfield request */
            && *pfield_size /* we have a bitfield open */
-#if defined(MS_WIN32) && !defined(__MINGW32__)
-           && dict->size * 8 == *pfield_size /* MSVC */
+#if defined(MS_WIN32)
+           && dict->size * 8 == *pfield_size /* Windows */
 #else
-           && dict->size * 8 <= *pfield_size /* GCC, MINGW */
+           && dict->size * 8 <= *pfield_size /* GCC */
 #endif
            && (*pbitofs + bitsize) <= *pfield_size) {
                /* continue bit field */
<end patch>

Also, can you please post the output of the following code snippet?

<test script>
from ctypes import *

class X(Structure):
    _fields_ = [("a", c_short, 4),
                ("b", c_short, 4),
                ("c", c_int, 24),
                ("d", c_short, 4),
                ("e", c_short, 4),
                ("f", c_int, 24)]

print X.a
print X.b
print X.c
print X.d
print X.e
print X.f
<end test script>

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3547>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to