@eht16 commented on this pull request.
+ /* when the number changes sign, the format is reset to avoid a display shift */ + if ((positive == FALSE && guessed_number >= 0) || (positive == TRUE && guessed_number < 0)) + { + format_length = 0; + } + else + { + format_length = digit_end - digit_start; + if (format_length > 12) + format_length = 0; + } + + g_snprintf(format_buf, sizeof(format_buf)-1, "%%0%d%c", format_length, use_hexa ? ( hexaCase == HEXA_CASE_UPPER ? 'X' : 'x' ) : 'd'); + + if ((buf = g_strdup_printf(format_buf, guessed_number)))
The best I found is: ```c #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-nonliteral" if ((buf = g_strdup_printf(format_buf, guessed_number))) #pragma GCC diagnostic pop ```