ncplane_options: make margin fields unsigned

This commit is contained in:
nick black 2021-11-30 05:44:41 -05:00
parent 538dff91ba
commit 46ebc1d9c6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 3 additions and 3 deletions

View File

@ -811,7 +811,7 @@ typedef struct ncplane_options {
const char* name; // name (used only for debugging), may be NULL const char* name; // name (used only for debugging), may be NULL
int (*resizecb)(struct ncplane*); // callback when parent is resized int (*resizecb)(struct ncplane*); // callback when parent is resized
uint64_t flags; // closure over NCPLANE_OPTION_* 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; } ncplane_options;
// Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to // Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to

View File

@ -25,7 +25,7 @@ typedef struct ncplane_options {
const char* name; // name (used only for debugging), may be NULL const char* name; // name (used only for debugging), may be NULL
int (*resizecb)(struct ncplane*); // called on parent resize int (*resizecb)(struct ncplane*); // called on parent resize
uint64_t flags; // closure over NCPLANE_OPTION_* 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; } ncplane_options;
#define NCSTYLE_MASK 0xffffu #define NCSTYLE_MASK 0xffffu

View File

@ -1272,7 +1272,7 @@ typedef struct ncplane_options {
const char* name; // name (used only for debugging), may be NULL const char* name; // name (used only for debugging), may be NULL
int (*resizecb)(struct ncplane*); // callback when parent is resized int (*resizecb)(struct ncplane*); // callback when parent is resized
uint64_t flags; // closure over NCPLANE_OPTION_* 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; } ncplane_options;
// Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to // Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to