Skip to content

Commit 8602b5f

Browse files
committed
handle new 5 digit version numbers
1 parent 2a17542 commit 8602b5f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/options.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ void _mi_options_init(void) {
204204
void mi_options_print(void) mi_attr_noexcept
205205
{
206206
// show version
207-
const int vermajor = MI_MALLOC_VERSION/100;
208-
const int verminor = (MI_MALLOC_VERSION%100)/10;
209-
const int verpatch = (MI_MALLOC_VERSION%10);
207+
const int vermajor = MI_MALLOC_VERSION/10000;
208+
const int verminor = (MI_MALLOC_VERSION%10000)/100;
209+
const int verpatch = (MI_MALLOC_VERSION%100);
210210
_mi_message("v%i.%i.%i%s%s (built on %s, %s)\n", vermajor, verminor, verpatch,
211211
#if defined(MI_CMAKE_BUILD_TYPE)
212212
", " mi_stringify(MI_CMAKE_BUILD_TYPE)

0 commit comments

Comments
 (0)