From cc26f656d69d8cdc7826658c7c0bce9c89aafde3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 18 Aug 2021 17:30:19 +0200 Subject: [PATCH] :art: Add string.save/load (warnings) --- src/lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/string.c b/src/lib/string.c index 06868309..5f9a7416 100644 --- a/src/lib/string.c +++ b/src/lib/string.c @@ -390,7 +390,7 @@ static SFUN(string_load) { rewind(f); fread(c, 1, sz, f); fclose(f); - *(m_uint*)RETURN = new_string2(shred->info->vm->gwion, shred, c); + *(M_Object*)RETURN = new_string2(shred->info->vm->gwion, shred, c); } GWION_IMPORT(string) { -- 2.43.0