Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Apr 22, 2023
1 parent 2388853 commit 8b9df85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ctypeslib/codegen/clangparser.py
Expand Up @@ -75,6 +75,7 @@ def __init__(self, flags):
self._unhandled = []
self.fields = {}
self.tu = None
self.tu_options = None
self.flags = flags
self.ctypes_sizes = {}
self.init_parsing_options()
Expand Down Expand Up @@ -222,7 +223,7 @@ def register(self, name, obj):
return obj

def get_registered(self, name):
"""Returns an registered type description"""
"""Returns a registered type description"""
return self.all[name]

def is_registered(self, name):
Expand Down Expand Up @@ -284,7 +285,7 @@ def make_ctypes_convertor(self, _flags):
size2 = util.get_cursor(translation_unit, "longdouble_t").type.get_size() * 8
# 2014-01 stop generating crap.
# 2015-01 reverse until better solution is found
# the idea is that a you cannot assume a c_double will be same format as a c_long_double.
# the idea is that you cannot assume a c_double will be same format as a c_long_double.
# at least this pass size TU
if size1 != size2:
self.ctypes_typename[TypeKind.LONGDOUBLE] = "c_long_double_t"
Expand Down

0 comments on commit 8b9df85

Please sign in to comment.