[CONPY-125] Build error due to obsolete constant names Created: 2020-10-19  Updated: 2020-10-19  Resolved: 2020-10-19

Status: Closed
Project: MariaDB Connector/Python
Component/s: Build
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

This issue was reported on Stackoverflow by Tars Morel

Due to obsolete constant name ULONG_LONG_MAX build fails:
mariadb/mariadb_codecs.c: In function 'my_strtoull':

mariadb/mariadb_codecs.c:148:15: error: 'ULONG_LONG_MAX' undeclared (first use in this function); did you mean 'ULLONG_MAX'?
    148 |     if (val > ULONG_LONG_MAX /10 || val*10 > ULONG_LONG_MAX - (*p - '0'))

According to the documentation the ULONG_LONG_MAX definition is obsolete and should be replaced by ULLONG_MAX.



 Comments   
Comment by Georg Richter [ 2020-10-19 ]

Fixed. Revision 3b2edf5b35a9d8548e8964a823265b83fedac499

Generated at Thu Feb 08 03:30:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.