File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ static REBOL_STATE Top_State; // Boot var: holds error state during boot
633
633
val = Get_Object (spec , STD_PORT_SPEC_HEAD_REF ); // most informative
634
634
if (IS_NONE (val )) val = Get_Object (spec , STD_PORT_SPEC_HEAD_TITLE );
635
635
636
- DS_PUSH_INTEGER (err_code );
636
+ DS_PUSH_INTEGER (- err_code );
637
637
Trap2 (errnum , val , DS_TOP );
638
638
}
639
639
Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ static REBSER *Read_All_File(char *fname)
592
592
REBVAL * arg = D_ARG (1 );
593
593
REBSER * ser ;
594
594
REBINT n ;
595
- REBVAL val , reason ;
595
+ REBVAL val ;
596
596
597
597
ser = Value_To_OS_Path (arg , TRUE);
598
598
// it should be safe not to check result from Value_To_OS_Path (it always succeeds)
@@ -609,8 +609,8 @@ static REBSER *Read_All_File(char *fname)
609
609
SET_FILE (arg , ser );
610
610
611
611
if (NZ (n )) {
612
- SET_INTEGER (& reason , n );
613
- Trap2 (RE_CANNOT_OPEN , arg , & reason );
612
+ SET_INTEGER (D_RET , - n );
613
+ Trap2 (RE_CANNOT_OPEN , arg , D_RET );
614
614
}
615
615
return R_ARG1 ;
616
616
}
You can’t perform that action at this time.
0 commit comments