Skip to content

Commit f5eb778

Browse files
committed
Allow unsigned char in copy_memory_or_grant
1 parent b8d9f70 commit f5eb778

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

code/include/rlbox_stdlib.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ inline T_Wrap<T_Rhs*, T_Sbx> memset(rlbox_sandbox<T_Sbx>& sandbox,
136136

137137
template<typename T>
138138
static constexpr bool can_type_be_memcopied =
139+
std::is_same_v<unsigned char, std::remove_cv_t<T>> ||
139140
std::is_same_v<char, std::remove_cv_t<T>> || std::is_same_v<wchar_t, std::remove_cv_t<T>> ||
140141
std::is_same_v<float, std::remove_cv_t<T>> || std::is_same_v<double, std::remove_cv_t<T>> ||
141142
std::is_same_v<char16_t, std::remove_cv_t<T>> || std::is_same_v<short, std::remove_cv_t<T>>;

0 commit comments

Comments
 (0)