mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
plot: use PRIu64
This commit is contained in:
parent
0d0f30ca93
commit
59cb0b8bfa
@ -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…
x
Reference in New Issue
Block a user