1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-25 02:36:23 -04:00

[config] PRIdPTR format for OPT_LONG

This commit is contained in:
Witold Filipczyk 2023-11-17 21:29:21 +01:00
parent 125262eac1
commit a6a81b9164

View File

@ -4,6 +4,10 @@
#include "config.h"
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -554,11 +558,11 @@ print_full_help_inner(struct option *tree, const char *path,
switch (type) {
case OPT_BOOL:
case OPT_INT:
printf(gettext("(default: %ld)"), (long) option->value.number);
break;
case OPT_LONG:
printf(gettext("(default: %ld)"),
type == OPT_LONG
? option->value.big_number
: (long) option->value.number);
printf(gettext("(default: %" PRIdPTR ")"), option->value.big_number);
break;
case OPT_STRING: