Skip to content

Commit

Permalink
FIX: allow to make bitset! from bitset!
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jun 8, 2020
1 parent d234395 commit 9f6b349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/t-bitset.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@

case A_MAKE:
case A_TO:
if (IS_BITSET(arg)) {
VAL_SERIES(arg) = Copy_Series_Value(arg);
return R_ARG2;
}
// Determine size of bitset. Returns -1 for errors.
len = Find_Max_Bit(arg);
if (len < 0 || len > 0x0FFFFFFF) Trap_Arg(arg);
Expand Down

0 comments on commit 9f6b349

Please sign in to comment.