Summary: | ASTERISK-08792: version.h contains ASTERISK_VERSION_NUM not prefixed with "0" | ||
Reporter: | Oskar Senft (osk) | Labels: | |
Date Opened: | 2007-02-13 10:05:42.000-0600 | Date Closed: | 2011-06-07 14:02:35 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Since 1.2.15 the ASTERISK_VERSION_NUM defined in version.h no longer contains the preceeding "0" such as #define ASTERISK_VERSION_NUM 010214 or #define ASTERISK_VERSION_NUM 010400 but contains this #define ASTERISK_VERSION_NUM 10215 This causes problems when detecting the Asterisk version using #if and comparison operators like ">" as e. g. 010214 is treated as octal number wheres 10215 is decimal. | ||
Comments: | By: Jason Parker (jparker) 2007-02-13 10:31:05.000-0600 This was changed recently so that it would be compared as decimal. If you have some out of tree module, you'll need to account for this change, possibly by removing the 0 from old versions yourself. Closing. |