frontend: fix all compiler warnings

This commit is contained in:
2024-12-13 17:20:45 +00:00
parent 97aaffd166
commit b3a9943fe5
14 changed files with 68 additions and 72 deletions

View File

@@ -2,11 +2,10 @@
#include "cursor.h"
#include "prompt.h"
void line_ed_coords_to_physical_coords(struct line_ed *ed,
unsigned int x, unsigned int y,
unsigned int *out_x, unsigned int *out_y)
void line_ed_coords_to_physical_coords(
struct line_ed *ed, size_t x, size_t y, size_t *out_x, size_t *out_y)
{
unsigned int prompt_len = 0;
size_t prompt_len = 0;
if (ed->l_cursor_y == 0) {
prompt_len = prompt_length(ed, PROMPT_MAIN);
} else if (ed->l_cursor_y <= ed->l_continuations) {