mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:05:10 +00:00
[FIX] Make Parsee build on GCC without warns
This commit is contained in:
parent
1d188069db
commit
907ac13da9
20 changed files with 72 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue