summaryrefslogtreecommitdiff
path: root/src/user/app/init/driver
diff options
context:
space:
mode:
authordzwdz2022-08-01 21:35:03 +0200
committerdzwdz2022-08-01 21:35:03 +0200
commit5fc7009037e392ccec021b1251ddfff9a8604368 (patch)
tree7a18ffeae1a3842ca6d57c7d83a45654fa7cc17d /src/user/app/init/driver
parente9a64093e2187fa858a0bf792d11cb5e7c67064d (diff)
fix some sign comparision warnings
Diffstat (limited to 'src/user/app/init/driver')
-rw-r--r--src/user/app/init/driver/ansiterm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user/app/init/driver/ansiterm.c b/src/user/app/init/driver/ansiterm.c
index 7b16537..7d842a5 100644
--- a/src/user/app/init/driver/ansiterm.c
+++ b/src/user/app/init/driver/ansiterm.c
@@ -50,12 +50,12 @@ static void scroll(void) {
cursor.y--;
}
-static void font_blit(int glyph, int x, int y) {
- if (glyph < 0 || glyph >= font.glyph_amt) glyph = 0;
+static void font_blit(size_t glyph, int x, int y) {
+ if (glyph >= font.glyph_amt) glyph = 0;
char *bitmap = font_data + font.glyph_size * glyph;
- for (int i = 0; i < font.w; i++) {
- for (int j = 0; j < font.h; j++) {
+ for (size_t i = 0; i < font.w; i++) {
+ for (size_t j = 0; j < font.h; j++) {
size_t idx = j * font.w + i;
char byte = bitmap[idx / 8];
byte >>= (7-(idx&7));