[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

@ -10,10 +10,10 @@
Stream *
StrStreamReaderN(char *buffer, int n)
{
if (!buffer)
if (!buffer || n < 0)
{
return NULL;
}
return StreamFile(fmemopen(buffer, n ? n : strlen(buffer), "rb"));
return StreamFile(fmemopen(buffer, n ? (size_t) n : strlen(buffer), "rb"));
}