Skip to content

Commit

Permalink
Skip checking DATOBJ when retyping bag (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Feb 29, 2024
1 parent c5b1535 commit 82d6d4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bags.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ void PrecheckRetypeBag(Bag bag, UInt new_type)
return;
#endif

// Some GAP code and packages (including EDIM) produce invalid
// T_DATOBJ objects without correct type info, so skip T_DATOBJ for now
if (IS_DATOBJ(bag))
return;

#ifndef HPCGAP
// HACK: when using `DeclareGlobalVariable`, the placeholder object of
// type `IsToBeDefinedObj` is immutable, while `InstallValue` also
Expand Down

0 comments on commit 82d6d4b

Please sign in to comment.