Skip to content

Commit

Permalink
FIX: using VAL_TYPE instead of direct type code
Browse files Browse the repository at this point in the history
improving 7c2a11e

related to: Oldes/Rebol-issues#276
  • Loading branch information
Oldes committed Apr 16, 2020
1 parent 7c2a11e commit 0ffc8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/t-date.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@

if (type == REB_DATE) {
if (action == A_SUBTRACT) {
if(!IS_DATE(val)) Trap_Math_Args(REB_INTEGER, A_SUBTRACT);
if(!IS_DATE(val)) Trap_Math_Args(VAL_TYPE(val), A_SUBTRACT);
num = Diff_Date(date, VAL_DATE(arg));
goto ret_int;
}
Expand Down

0 comments on commit 0ffc8f6

Please sign in to comment.