diff options
Diffstat (limited to 'src/bytecode/string_view.h')
-rwxr-xr-x | src/bytecode/string_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); | |||
18 | // Write a character to the given output stream. | 18 | // Write a character to the given output stream. |
19 | void sv_write(const StringView *sv); | 19 | void sv_write(const StringView *sv); |
20 | 20 | ||
21 | #define STRING(STR) (StringView){(STR), sizeof(STR)} | 21 | #define STRING(STR) (StringView){(STR), sizeof(STR) - 1} |
22 | 22 | ||
23 | #endif // BDL_STRINGVIEW_H | 23 | #endif // BDL_STRINGVIEW_H |