From c037482f0cf0fcfbf6ced92d36cda406cf3f099f Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Fri, 11 Sep 2020 15:37:06 -0400 Subject: [PATCH] Fix for long type in python 3. Python 3 doesn't have a long type. --- src/PyCool/python/PyCool/_internal/definitions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PyCool/python/PyCool/_internal/definitions.py b/src/PyCool/python/PyCool/_internal/definitions.py index c51a51935..03b51870a 100644 --- a/src/PyCool/python/PyCool/_internal/definitions.py +++ b/src/PyCool/python/PyCool/_internal/definitions.py @@ -67,15 +67,15 @@ cool_type_aliases = _guess_cool_type_aliases() ## Mapping to define typedefs for C++ basic types basic_types_mapping = {# C++: Python - "unsigned": "long" , # (none) - "unsigned int": "long" , # UInt32, ChannelId - "unsigned long long": "long" , # UInt64, UInt63, ValidityKey + "unsigned": "int" , # (none) + "unsigned int": "int" , # UInt32, ChannelId + "unsigned long long": "int" , # UInt64, UInt63, ValidityKey "bool": "bool", # Bool "unsigned char": "int", # UChar "short": "int", # Int16 "unsigned short": "int", # UInt16 "int": "int", # Int32 - "long long": "long" , # Int64 + "long long": "int" , # Int64 "float": "float", # Float "double": "float", # Double } -- GitLab