From f0cd7a3cab56a6f8d7b4520aaa168a271a94d6d4 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 27 Oct 2021 10:43:30 +0200 Subject: Add initial implementation of locals --- src/bytecode/string_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bytecode/string_view.h') diff --git a/src/bytecode/string_view.h b/src/bytecode/string_view.h index 79d8305..5977ea9 100755 --- a/src/bytecode/string_view.h +++ b/src/bytecode/string_view.h @@ -18,6 +18,6 @@ bool sv_equal(const StringView *a, const StringView *b); // Write a character to the given output stream. void sv_write(const StringView *sv); -#define STRING(STR) (StringView){(STR), sizeof(STR)} +#define STRING(STR) (StringView){(STR), sizeof(STR) - 1} #endif // BDL_STRINGVIEW_H -- cgit v1.2.1