diff --git a/hpcgap/lib/helpbase.gi b/hpcgap/lib/helpbase.gi index fe9de8ebe2..c802ca2dc7 100644 --- a/hpcgap/lib/helpbase.gi +++ b/hpcgap/lib/helpbase.gi @@ -1404,13 +1404,13 @@ atomic readwrite HELP_REGION do # if the topic is 'chapters' display the table of chapters elif str = "chapters" or str = "contents" or book <> "" and str = "" then - if ForAll(books, b-> HELP_SHOW_CHAPTERS(b)) then + if ForAll(books, HELP_SHOW_CHAPTERS) then add( books, "chapters", "chapters" ); fi; # if the topic is 'sections' display the table of sections elif str = "sections" then - if ForAll(books, b-> HELP_SHOW_SECTIONS(b)) then + if ForAll(books, HELP_SHOW_SECTIONS) then add(books, "sections", "sections"); fi; diff --git a/hpcgap/lib/vecmat.gi b/hpcgap/lib/vecmat.gi index 496c536b61..e732be8ed7 100644 --- a/hpcgap/lib/vecmat.gi +++ b/hpcgap/lib/vecmat.gi @@ -1745,6 +1745,11 @@ InstallMethod( ImmutableVector,"general,2",[IsObject,IsRowVector],0, function(f,v) local v2; if not IsInt(f) then f := Size(f); fi; + # 'IsRowVector' implies 'IsList'. + # We are not allowed to return a non-list, + # thus we are not allowed to call 'Vector'. + # Since there is a method for 'IsVectorObj' as the second argument, + # we do not deal with proper vector objects here. if f <= 256 then v2 := CopyToVectorRep(v,f); if v2 <> fail then v := v2; fi;