From 73959929c34ac42f39bb37b01388cc1450c4fadb Mon Sep 17 00:00:00 2001 From: cozis Date: Fri, 1 Apr 2022 20:11:44 +0200 Subject: [PATCH] fixed compilation error --- examples/bug.noja | 1 + examples/deepfailure.noja | 1 - src/builtins/basic.c | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 examples/bug.noja diff --git a/examples/bug.noja b/examples/bug.noja new file mode 100644 index 0000000..5e5a34d --- /dev/null +++ b/examples/bug.noja @@ -0,0 +1 @@ +unicode(''); \ No newline at end of file diff --git a/examples/deepfailure.noja b/examples/deepfailure.noja index acddc14..1d3262b 100644 --- a/examples/deepfailure.noja +++ b/examples/deepfailure.noja @@ -11,5 +11,4 @@ fun fail_at_depth(depth) { fail(0); } - fail_at_depth(9); \ No newline at end of file diff --git a/src/builtins/basic.c b/src/builtins/basic.c index 5e4dad0..3912e67 100644 --- a/src/builtins/basic.c +++ b/src/builtins/basic.c @@ -31,9 +31,11 @@ #include #include #include +#include #include "basic.h" #include "files.h" #include "math.h" +#include "../utils/utf8.h" static Object *bin_print(Runtime *runtime, Object **argv, unsigned int argc, Error *error) {