Skip to content

Commit b387d30

Browse files
encukoupicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent bd53c28 commit b387d30

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/ctypes/_layout.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def __init__(self, fields, size, align, format_spec):
6363
self.format_spec = format_spec
6464

6565

66-
6766
def get_layout(cls, input_fields, is_struct, base):
6867
"""Return a StructUnionLayout for the given class.
6968
@@ -247,9 +246,9 @@ def get_layout(cls, input_fields, is_struct, base):
247246

248247
last_field_bit_size = type_bit_size
249248
# Reminder: 8 * (next_byte_offset) + next_bit_offset
250-
# points to where we would start a
251-
# new field. I.e. just behind where we placed the last
252-
# field plus an allowance for alignment.
249+
# points to where we would start a new field, namely
250+
# just behind where we placed the last field plus an
251+
# allowance for alignment.
253252
next_bit_offset = -last_field_bit_size
254253

255254
assert type_bit_size == last_field_bit_size

0 commit comments

Comments
 (0)