Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <max@quendi.de>
  • Loading branch information
ChrisJefferson and fingolfin authored Mar 24, 2021
1 parent 1ee92e6 commit f58748e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/list.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@ DeclareGlobalFunction( "ListWithIdenticalEntries" );
##
## <Description>
## This function returns a list equal to its argument, in a plain list
## representation.
## representation (see <Ref Filt="IsPlistRep"/>).
## This is intended for use in certain rare situations,
## such as before objectifying, or calling some kernel functions.
## </Description>
Expand Down
3 changes: 2 additions & 1 deletion src/lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,8 @@ Obj PLAIN_LIST_COPY(Obj list)
return res;
}

Obj FuncPLAIN_LIST_COPY(Obj func, Obj list) {
Obj FuncPLAIN_LIST_COPY(Obj func, Obj list)
{
return PLAIN_LIST_COPY(list);
}

Expand Down
4 changes: 4 additions & 0 deletions tst/testinstall/list.tst
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ gap> checkPlainListCopy("abc");
true
gap> checkPlainListCopy(ListWithIdenticalEntries(3, false));
true
gap> checkPlainListCopy(NewZeroVector(IsGF2VectorRep, GF(2), 10));
true
gap> checkPlainListCopy(NewZeroVector(Is8BitVectorRep, GF(3), 10));
true

# Check TNUM behaviours
gap> x := [1,,"cheese"];;
Expand Down

0 comments on commit f58748e

Please sign in to comment.