y already >=0 (#16512)

This commit is contained in:
Liumeo 2020-04-10 03:02:35 -04:00 committed by GitHub
parent 067bf11e98
commit 75bc5ec905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ R_API bool r_cons_canvas_gotoxy(RConsCanvas *c, int x, int y) {
if (x < c->blen[y] && x >= 0) { if (x < c->blen[y] && x >= 0) {
c->x = x; c->x = x;
} }
if (y < c->h && y >= 0) { if (y < c->h) {
c->y = y; c->y = y;
} }
return ret; return ret;