We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa23824 commit 13e86acCopy full SHA for 13e86ac
1 file changed
src/objects.h
@@ -472,12 +472,15 @@ void MakeImmutable(Obj obj);
472
** This is an unsafe helper function, for use in functions installed as
473
** handlers in 'MakeImmutableObjFuncs' for internal objects tracking their
474
** mutability, i.e., in the range FIRST_IMM_MUT_TNUM to LAST_IMM_MUT_TNUM.
475
-** It only modifies the TNUM, and does not make subobjects immutable.
+** It only sets an object flag, and does not make subobjects immutable.
476
*/
477
EXPORT_INLINE void MakeImmutableNoRecurse(Obj obj)
478
{
479
GAP_ASSERT((FIRST_IMM_MUT_TNUM <= TNUM_OBJ(obj)) && (TNUM_OBJ(obj) <= LAST_IMM_MUT_TNUM));
480
SET_OBJ_FLAG(obj, OBJ_FLAG_IMMUTABLE);
481
+#ifdef HPCGAP
482
+ MakeBagPublic(obj);
483
+#endif
484
}
485
486
0 commit comments