plot: use PRIu64

pull/1979/head
nick black 3 years ago
parent 0d0f30ca93
commit 59cb0b8bfa
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -17,6 +17,7 @@
#include <unistr.h>
#include <locale.h>
#include <uniwbrk.h>
#include <inttypes.h>
#include <notcurses/direct.h>
#include "compat/compat.h"
@ -1037,7 +1038,7 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
return NULL;
}
if(opts->flags >= (NCOPTION_NO_FONT_CHANGES << 1u)){
fprintf(stderr, "Warning: unknown Notcurses options %016jx\n", (uintmax_t)opts->flags);
fprintf(stderr, "Warning: unknown Notcurses options %016" PRIu64 "\n", opts->flags);
}
notcurses* ret = malloc(sizeof(*ret));
if(ret == NULL){

@ -2,6 +2,7 @@
#include <float.h>
#include <limits.h>
#include <string.h>
#include <inttypes.h>
#include "internal.h"
#define MAXWIDTH 2
@ -205,7 +206,7 @@ int redraw_plot_##T(nc##X##plot* ncp){ \
int lastslot = ncp->slotstart ? ncp->slotstart - 1 : ncp->slotcount - 1; \
ncplane_set_styles(ncp->ncp, ncp->legendstyle); \
ncplane_set_channels(ncp->ncp, ncp->maxchannels); \
ncplane_printf_aligned(ncp->ncp, 0, NCALIGN_RIGHT, "%ju", (uintmax_t)ncp->slots[lastslot]); \
ncplane_printf_aligned(ncp->ncp, 0, NCALIGN_RIGHT, "%" PRIu64 "u", (uint64_t)ncp->slots[lastslot]); \
} \
ncplane_home(ncp->ncp); \
return 0; \

@ -1,7 +1,6 @@
#include <zlib.h>
#include <inttypes.h>
#include <stdatomic.h>
#include <arpa/inet.h>
#include "visual-details.h"
#include "internal.h"
#include "base64.h"

Loading…
Cancel
Save