From c92ecda53337490633c95e6ae00e322dc9ad1fb8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 10 Jun 2024 22:39:55 -0300 Subject: feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed. Co-Authored-By: Hisham Muhammad Co-authored-by: Mark Pulford Co-authored-by: ichenq Co-authored-by: Cloud Wu Co-authored-by: caijietao Co-authored-by: actboy168 Co-authored-by: wudeng Co-authored-by: caiyiheng --- strbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strbuf.c') diff --git a/strbuf.c b/strbuf.c index 2dc30be..73cd9b8 100644 --- a/strbuf.c +++ b/strbuf.c @@ -59,7 +59,7 @@ void strbuf_init(strbuf_t *s, size_t len) s->reallocs = 0; s->debug = 0; - s->buf = malloc(size); + s->buf = (char *)malloc(size); if (!s->buf) die("Out of memory"); @@ -70,7 +70,7 @@ strbuf_t *strbuf_new(size_t len) { strbuf_t *s; - s = malloc(sizeof(strbuf_t)); + s = (strbuf_t*)malloc(sizeof(strbuf_t)); if (!s) die("Out of memory"); @@ -169,7 +169,7 @@ void strbuf_resize(strbuf_t *s, size_t len) } s->size = newsize; - s->buf = realloc(s->buf, s->size); + s->buf = (char *)realloc(s->buf, s->size); if (!s->buf) die("Out of memory, len: %zu", len); s->reallocs++; -- cgit v1.2.3-55-g6feb