> - self.sizeof_void_p = get_config_var('SIZEOF_VOID_P') > + self.sizeof_void_p = get_config_var('SIZEOF_VOID_P') \ > + if sys.platform != 'darwin' else None > if not self.sizeof_void_p: > - self.sizeof_void_p = 8 if architecture()[0] == '64bit' else 4 > + self.sizeof_void_p = 8 if sys.maxsize> 2**32 else 4 > Why not unconditionally use sys.maxsize? I'd also hard-code that sys.maxsize ought to be either 2**31-1 or 2**63-1. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4