y already >=0 (#16512)
This commit is contained in:
parent
067bf11e98
commit
75bc5ec905
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue