[FIX] Make Parsee build on GCC without warns

This commit is contained in:
LDA 2024-09-10 22:20:13 +02:00
commit 907ac13da9
20 changed files with 72 additions and 20 deletions

View file

@ -117,7 +117,7 @@ StrFullRect(char **split)
char
StrGet(StringRect *rect, int line, int col)
{
int actual_line, actual_col;
size_t actual_line, actual_col;
char *linep;
if (!rect || !rect->source_lines)
{
@ -150,7 +150,7 @@ StrGet(StringRect *rect, int line, int col)
size_t
StrViewChars(StringRect rect, int line)
{
int actual_line;
size_t actual_line;
char *linep;
if (!rect.source_lines)
{
@ -174,7 +174,7 @@ StrViewChars(StringRect rect, int line)
StringRect
StrGetl(StringRect *rect, int line, bool extend)
{
int actual_line;
size_t actual_line;
StringRect ret;
if (!rect->source_lines)
{
@ -204,7 +204,7 @@ StrGetl(StringRect *rect, int line, bool extend)
StringRect
StrShift(StringRect rect, int n)
{
int new = rect.start_char + n;
size_t new = rect.start_char + n;
if (new > rect.end_char)
{
new = rect.end_char;