From 46ebc1d9c654a7d66417c9b47641c7354163955e Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 30 Nov 2021 05:44:41 -0500 Subject: [PATCH] ncplane_options: make margin fields unsigned --- USAGE.md | 2 +- doc/man/man3/notcurses_plane.3.md | 2 +- include/notcurses/notcurses.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/USAGE.md b/USAGE.md index 7362efdd7..ad182d035 100644 --- a/USAGE.md +++ b/USAGE.md @@ -811,7 +811,7 @@ typedef struct ncplane_options { const char* name; // name (used only for debugging), may be NULL int (*resizecb)(struct ncplane*); // callback when parent is resized uint64_t flags; // closure over NCPLANE_OPTION_* - int margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED) + unsigned margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED) } ncplane_options; // Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to diff --git a/doc/man/man3/notcurses_plane.3.md b/doc/man/man3/notcurses_plane.3.md index 7ce7f7247..90840c236 100644 --- a/doc/man/man3/notcurses_plane.3.md +++ b/doc/man/man3/notcurses_plane.3.md @@ -25,7 +25,7 @@ typedef struct ncplane_options { const char* name; // name (used only for debugging), may be NULL int (*resizecb)(struct ncplane*); // called on parent resize uint64_t flags; // closure over NCPLANE_OPTION_* - int margin_b, margin_r; // bottom and right margins + unsigned margin_b, margin_r; // bottom and right margins } ncplane_options; #define NCSTYLE_MASK 0xffffu diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index cec46d130..d2ef8a5e8 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -1272,7 +1272,7 @@ typedef struct ncplane_options { const char* name; // name (used only for debugging), may be NULL int (*resizecb)(struct ncplane*); // callback when parent is resized uint64_t flags; // closure over NCPLANE_OPTION_* - int margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED) + unsigned margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED) } ncplane_options; // Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to