From d5fb55b62fb4056bbdb02ae2a640b627716efba9 Mon Sep 17 00:00:00 2001 From: hedger Date: Mon, 11 Dec 2017 15:07:28 +0300 Subject: [PATCH] Fixed size of 64-bit integers, they now have 64 bits, not 32. --- cstruct/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cstruct/__init__.py b/cstruct/__init__.py index 2ca18bb..a97062c 100644 --- a/cstruct/__init__.py +++ b/cstruct/__init__.py @@ -142,8 +142,8 @@ def print_info(self): 'uint16': 'H', 'int32': 'i', 'uint32': 'I', - 'int64': 'l', - 'uint64': 'L', + 'int64': 'q', + 'uint64': 'Q', } STRUCTS = {