diff --git a/src/main.cpp b/src/main.cpp index c6074403..2bac5710 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1114,6 +1114,7 @@ void upx_sanity_check(void) assert(memcmp(UPX_VERSION_STRING4, UPX_VERSION_STRING, 4) == 0); COMPILE_TIME_ASSERT(sizeof(UPX_VERSION_YEAR) == 4 + 1) assert(strlen(UPX_VERSION_YEAR) == 4); + assert(memcmp(UPX_VERSION_DATE_ISO, UPX_VERSION_YEAR, 4) == 0); assert(memcmp(UPX_VERSION_DATE + strlen(UPX_VERSION_DATE) - 4, UPX_VERSION_YEAR, 4) == 0); #if 1 diff --git a/src/version.h b/src/version.h index e07c2dd9..6758c117 100644 --- a/src/version.h +++ b/src/version.h @@ -2,4 +2,5 @@ #define UPX_VERSION_STRING "1.94 beta" #define UPX_VERSION_STRING4 "1.94" #define UPX_VERSION_DATE "Mar 11th 2006" +#define UPX_VERSION_DATE_ISO "2006-03-11" #define UPX_VERSION_YEAR "2006"