diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-07-05 10:42:17 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-07-05 10:42:21 -0400 |
| commit | 6b0ddba545ca578903fe856af6d820883121bb1e (patch) | |
| tree | 7e8a485e89bc23075e084fe16c44e5e280c5855c /version_compare.h | |
| parent | a70733d9a64320eac8038d733df67467cd97976c (diff) | |
| download | version_compare-6b0ddba545ca578903fe856af6d820883121bb1e.tar.gz | |
* Pad first element of a version to avoid small versions being detected as greater than larger versions
* before: 1.0.3 > 2.0.0 == TRUE
* after: 1.0.3 > 2.0.0 == FALSE
Diffstat (limited to 'version_compare.h')
| -rw-r--r-- | version_compare.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/version_compare.h b/version_compare.h index a951e53..cf873ad 100644 --- a/version_compare.h +++ b/version_compare.h @@ -5,6 +5,7 @@ #define LT 1 << 2 #define EQ 1 << 3 #define NOT 1 << 4 +#define EPOCH_MOD 100 int isempty(char *str); char *lstrip(char **s); |
