kill some signed-vs-unsigneds

pull/2528/head
nick black 2 years ago
parent 91a8d85707
commit 0c007078f0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -223,7 +223,7 @@ int box_demo(struct notcurses* nc, uint64_t startns){
int y = 1, x = 0;
ncplane_dim_yx(n, &ylen, &xlen);
--ylen;
while(ylen - y >= targy && xlen - x >= targx){
while((int)ylen - y >= targy && (int)xlen - x >= targx){
if(ncplane_cursor_move_yx(n, y, x)){
return -1;
}
@ -255,7 +255,7 @@ int box_demo(struct notcurses* nc, uint64_t startns){
ncplane_dim_yx(n, &ylen, &xlen);
--ylen;
move_ships(nc, ships, sizeof(ships) / sizeof(*ships));
while(ylen - y >= targy && xlen - x >= targx){
while((int)ylen - y >= targy && (int)xlen - x >= targx){
if(ncplane_cursor_move_yx(n, y, x)){
return -1;
}

@ -13,8 +13,8 @@
#include "demo.h"
// (non-)ansi terminal definition-4-life
static const int MIN_SUPPORTED_ROWS = 24;
static const int MIN_SUPPORTED_COLS = 76; // allow a bit of margin, sigh
static const unsigned MIN_SUPPORTED_ROWS = 24;
static const unsigned MIN_SUPPORTED_COLS = 76; // allow a bit of margin, sigh
static char *datadir;
static int democount;

Loading…
Cancel
Save