]> Nishi Git Mirror - gwion.git/commitdiff
:art: Add string.save/load (warnings)
authorJérémie Astor <fennecdjay@gmail.com>
Wed, 18 Aug 2021 15:30:19 +0000 (17:30 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Wed, 18 Aug 2021 15:30:19 +0000 (17:30 +0200)
src/lib/string.c

index 0686830959ec5c1b7072cddcbe60201161bf37e4..5f9a74168befe2c8497fea33d15e17966998552b 100644 (file)
@@ -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) {