aboutsummaryrefslogtreecommitdiff
path: root/src/string.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-17 23:36:07 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-17 23:36:07 +0000
commit2af9fb79dc528830aa2b57943d7d69074a5b399a (patch)
tree79801829328d20a74f01e54b1b446d7e8b9e733d /src/string.c
parent367d307dc48fb4ee6815141d2f22b69a0996eb66 (diff)
Change cast syntax, int(x), []byte(s), (^int)(p)
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 1198af7d1..69dbf1b58 100644
--- a/src/string.c
+++ b/src/string.c
@@ -46,7 +46,7 @@ gb_inline String make_string_c(char *text) {
return make_string(cast(u8 *)cast(void *)text, gb_strlen(text));
}
-#define str_lit(c_str) make_string(cast(u8 *)c_str, gb_size_of(c_str)-1)
+#define str_lit(c_str) (String){cast(u8 *)c_str, gb_size_of(c_str)-1}