diff --git a/nuklear.h b/nuklear.h index 44e29655f..1c7397094 100644 --- a/nuklear.h +++ b/nuklear.h @@ -7415,7 +7415,7 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args) /* width argument */ width = NK_DEFAULT; if (*iter >= '1' && *iter <= '9') { - const char *end; + char *end; width = nk_strtoi(iter, &end); if (end == iter) width = -1; @@ -7433,7 +7433,7 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args) precision = va_arg(args, int); iter++; } else { - const char *end; + char *end; precision = nk_strtoi(iter, &end); if (end == iter) precision = -1; @@ -30698,6 +30698,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args) /// - [y]: Minor version with non-breaking API and library changes /// - [z]: Patch version with no direct changes to the API /// +/// - 2024/11/24 (4.12.2) - Fix const type conversion warnings /// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20 /// - 2023/11/26 (4.12.0) - Added an alignment option to checkboxes and radio buttons. /// - 2023/10/11 (4.11.0) - Added nk_widget_disable_begin() and nk_widget_disable_end() diff --git a/src/CHANGELOG b/src/CHANGELOG index c301e319d..aa4868b43 100644 --- a/src/CHANGELOG +++ b/src/CHANGELOG @@ -7,6 +7,7 @@ /// - [y]: Minor version with non-breaking API and library changes /// - [z]: Patch version with no direct changes to the API /// +/// - 2024/11/24 (4.12.2) - Fix const type conversion warnings /// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20 /// - 2023/11/26 (4.12.0) - Added an alignment option to checkboxes and radio buttons. /// - 2023/10/11 (4.11.0) - Added nk_widget_disable_begin() and nk_widget_disable_end() diff --git a/src/nuklear_util.c b/src/nuklear_util.c index f6ecfa76c..b55602b1b 100644 --- a/src/nuklear_util.c +++ b/src/nuklear_util.c @@ -633,7 +633,7 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args) /* width argument */ width = NK_DEFAULT; if (*iter >= '1' && *iter <= '9') { - const char *end; + char *end; width = nk_strtoi(iter, &end); if (end == iter) width = -1; @@ -651,7 +651,7 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args) precision = va_arg(args, int); iter++; } else { - const char *end; + char *end; precision = nk_strtoi(iter, &end); if (end == iter) precision = -1;