We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8994ad0 + db171e0 commit 7bc0cebCopy full SHA for 7bc0ceb
Lib/test/test_ctypes/test_struct_fields.py
@@ -79,7 +79,8 @@ def test_gh126937(self):
79
class X(self.cls):
80
_fields_ = [('char', c_char),]
81
class Y(self.cls):
82
- _fields_ = [('largeField', X * (2 ** 32))]
+ # (2^31 - 1) is the largest size that can fit into a signed 32 bit int
83
+ _fields_ = [('largeField', X * (2 ** 31 - 1))]
84
85
# __set__ and __get__ should raise a TypeError in case their self
86
# argument is not a ctype instance.
0 commit comments