X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fstructures%2Fobject_packers.h;h=a26503e98f99998be73ea2a83c19c6856f614ac7;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=fecb78761032223bd4d4b26c323ba241de6ee791;hpb=fa30e6adff1dea5d6b3903279ef024dd3bed043f;p=feisty_meow.git diff --git a/nucleus/library/structures/object_packers.h b/nucleus/library/structures/object_packers.h index fecb7876..a26503e9 100644 --- a/nucleus/library/structures/object_packers.h +++ b/nucleus/library/structures/object_packers.h @@ -123,7 +123,7 @@ bool unpack_array(basis::byte_array &packed_form, basis::array &to_unp to_unpack.reset(); basis::un_int len; if (!obscure_detach(packed_form, len)) return false; - basis::array swappy_array(len, NIL, to_unpack.flags()); + basis::array swappy_array(len, NULL_POINTER, to_unpack.flags()); // we create an array of the specified length to see if it's tenable. if (!swappy_array.observe()) return false; // failed to allocate. for (int i = 0; i < (int)len; i++) { @@ -162,7 +162,7 @@ bool unpack_simple(basis::byte_array &packed_form, basis::array &to_un to_unpack.reset(); basis::un_int len; if (!obscure_detach(packed_form, len)) return false; - basis::array swappy_array(len, NIL, to_unpack.flags()); + basis::array swappy_array(len, NULL_POINTER, to_unpack.flags()); if (!swappy_array.observe()) return false; // failed to allocate. for (int i = 0; i < len; i++) { if (!detach(packed_form, swappy_array[i]))