persing minus sign and exponents for numeric values

This commit is contained in:
cozis
2022-04-24 23:12:35 +02:00
parent 841e3f75fa
commit 113830d092
7 changed files with 132 additions and 10 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ char *load_file(const char *path, int *len)
return NULL;
}
if(fread(data, 1, len_, fp) != len_)
assert(len_ >= 0);
if(fread(data, 1, len_, fp) != (unsigned int) len_)
{
free(data);
fclose(fp);