From: Jérémie Astor Date: Wed, 18 Aug 2021 15:30:19 +0000 (+0200) Subject: :art: Add string.save/load (warnings) X-Git-Tag: nightly~470^2~51 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=cc26f656d69d8cdc7826658c7c0bce9c89aafde3;p=gwion.git :art: Add string.save/load (warnings) --- 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) {