mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Fix #452 - Bad file marshal
We forgot a call to janet_marshal_abstract, which corrupted the output.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose