Skip to content

Commit

Permalink
FIX: corrected code for copy map!
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Sep 20, 2021
1 parent 9d225e5 commit 85de1db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/t-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@

/***********************************************************************
**
*/ REBFLG MT_Map(REBVAL *out, REBVAL *data, REBU64 type)
*/ REBFLG MT_Map(REBVAL *out, REBVAL *data, REBCNT type)
/*
***********************************************************************/
{
Expand Down Expand Up @@ -575,11 +575,10 @@
else types |= VAL_TYPESET(arg);
}
if (D_REF(ARG_COPY_DEEP)) {
//puts("deep copy wanted");
types |= CP_DEEP | (D_REF(ARG_COPY_TYPES) ? types : TS_DEEP_COPIED);
}
if (MT_Map(D_RET, val, types)) return R_RET;
Trap_Arg(val);
Set_Series(REB_MAP, D_RET, Copy_Map(val, types));
break;
}
case A_CLEAR:
Clear_Series(series);
Expand Down

0 comments on commit 85de1db

Please # to comment.