mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Fix #452 - Bad file marshal
We forgot a call to janet_marshal_abstract, which corrupted the output.
This commit is contained in:
parent
1ba3f72e4c
commit
409a8a3a43
@ -339,6 +339,7 @@ static int io_file_get(void *p, Janet key, Janet *out) {
|
||||
static void io_file_marshal(void *p, JanetMarshalContext *ctx) {
|
||||
JanetFile *iof = (JanetFile *)p;
|
||||
if (ctx->flags & JANET_MARSHAL_UNSAFE) {
|
||||
janet_marshal_abstract(ctx, p);
|
||||
#ifdef JANET_WINDOWS
|
||||
janet_marshal_int(ctx, _fileno(iof->file));
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user