summaryrefslogtreecommitdiff
path: root/src/string.h
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-07-28 02:54:05 -0700
committersteven-na <noreply.github@stvnc.dev>2026-07-28 02:54:05 -0700
commit3372ec87759b83e6cc8b73e37a298cb804cbba5a (patch)
treecd2011edfbf37f4c27b448fe748e6e0fc3283ea0 /src/string.h
parent8bec6205ae1631dc0896fe25795b2946ed414df0 (diff)
String tests
Diffstat (limited to 'src/string.h')
-rw-r--r--src/string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.h b/src/string.h
index 1b5f136..b8554ff 100644
--- a/src/string.h
+++ b/src/string.h
@@ -3,7 +3,7 @@
#include "common.h"
#include "smrt_arena.h"
-#define STRNG_BASE_POS (sizeof(ez_arena_t))
+#define STRNG_BASE_POS (sizeof(strng_t))
typedef struct {
u64 alloc_size;
@@ -15,4 +15,4 @@ strng_t *strng_from(smrt_arena_t *arena, char *c);
b32 strng_set(strng_t *string, char *c);
void strng_clear(strng_t *string);
-#define STRNG_FMT(s) (int)s->len, (s+STRNG_BASE_POS)
+#define STRNG_FMT(s) (int)s->len, (char *)((u8*)s+STRNG_BASE_POS)