Skip to content

Commit d892184

Browse files
committed
Enum types don't need separate GC protection
1 parent fb877e5 commit d892184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jlcxx/module.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ class JLCXX_API Module
723723
{
724724
throw std::runtime_error("error adding enum type " + name);
725725
}
726-
set_julia_type<EnumT>((jl_datatype_t*)dt);
726+
set_julia_type<EnumT>((jl_datatype_t*)dt, false);
727727
}
728728

729729
/// Set a global constant value at the module level

0 commit comments

Comments
 (0)