Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lists.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ EXPORT_INLINE void UNB_LIST(Obj list, Int pos)
GAP_ASSERT(pos > 0);
UInt tnum = TNUM_OBJ(list);
if (FIRST_LIST_TNUM <= tnum && tnum <= LAST_LIST_TNUM &&
(tnum & IMMUTABLE)) {
!IS_MUTABLE_OBJ(list)) {
ErrorMayQuit("List Unbind: <list> must be a mutable list", 0, 0);
}
(*UnbListFuncs[TNUM_OBJ(list)])(list, pos);
Expand Down Expand Up @@ -504,7 +504,7 @@ EXPORT_INLINE void ASS_LIST(Obj list, Int pos, Obj obj)
GAP_ASSERT(obj != 0);
UInt tnum = TNUM_OBJ(list);
if (FIRST_LIST_TNUM <= tnum && tnum <= LAST_LIST_TNUM &&
(tnum & IMMUTABLE)) {
!IS_MUTABLE_OBJ(list)) {
ErrorMayQuit("List Assignment: <list> must be a mutable list", 0, 0);
}
(*AssListFuncs[TNUM_OBJ(list)])(list, pos, obj);
Expand Down Expand Up @@ -552,7 +552,7 @@ EXPORT_INLINE void ASSS_LIST(Obj list, Obj poss, Obj objs)
GAP_ASSERT(LEN_LIST(poss) == LEN_LIST(objs));
UInt tnum = TNUM_OBJ(list);
if (FIRST_LIST_TNUM <= tnum && tnum <= LAST_LIST_TNUM &&
(tnum & IMMUTABLE)) {
!IS_MUTABLE_OBJ(list)) {
ErrorMayQuit("List Assignments: <list> must be a mutable list", 0, 0);
}
(*AsssListFuncs[TNUM_OBJ(list)])(list, poss, objs);
Expand Down