Skip to content

Commit

Permalink
More HPC-GAP sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Feb 25, 2024
1 parent c0456f7 commit 4a5bf41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpcgap/lib/helpbase.gi
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 5 additions & 0 deletions hpcgap/lib/vecmat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a5bf41

Please sign in to comment.