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.
1 parent 7402a8f commit db171e0Copy full SHA for db171e0
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 - 1))]
+ # (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