aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 12:59:07 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 12:59:07 +0300
commit451111dc51df69580d04c9965f70531f50e3d509 (patch)
tree379a7123f2588f149021c896118ce0ded4f5a9cc /src/compiler.c
parentf86cb1e9ec6cb562d1d0ebf4b0fd7119296ff10d (diff)
downloadek-451111dc51df69580d04c9965f70531f50e3d509.tar.gz
ek-451111dc51df69580d04c9965f70531f50e3d509.zip
add initial ufcs checks
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.c b/src/compiler.c
index 5aa6787..14a838a 100644
--- a/src/compiler.c
+++ b/src/compiler.c
@@ -47,11 +47,11 @@ static char *read_file(const char *file, FILE *f)
fseek(f, 0, SEEK_SET);
- char *buf = malloc(s + 1);
+ char *buf = malloc((size_t)(s + 1));
if (!buf)
return NULL;
- fread(buf, s + 1, 1, f);
+ fread(buf, (size_t)(s + 1), 1, f);
/* remember terminating null */
buf[s] = 0;
return buf;