File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,7 +160,11 @@ template <typename T>
160160inline void PatchRecordComponent::store (uint64_t idx, T data)
161161{
162162 Datatype dtype = determineDatatype<T>();
163- if (dtype != getDatatype ())
163+ if (dtype != getDatatype () && !isSameInteger<T>(getDatatype ()) &&
164+ !isSameFloatingPoint<T>(getDatatype ()) &&
165+ !isSameComplexFloatingPoint<T>(getDatatype ()) &&
166+ !isSameChar<T>(getDatatype ()))
167+ )
164168 {
165169 std::ostringstream oss;
166170 oss << " Datatypes of patch data (" << dtype << " ) and dataset ("
@@ -187,7 +191,11 @@ template <typename T>
187191inline void PatchRecordComponent::store (T data)
188192{
189193 Datatype dtype = determineDatatype<T>();
190- if (dtype != getDatatype ())
194+ if (dtype != getDatatype () && !isSameInteger<T>(getDatatype ()) &&
195+ !isSameFloatingPoint<T>(getDatatype ()) &&
196+ !isSameComplexFloatingPoint<T>(getDatatype ()) &&
197+ !isSameChar<T>(getDatatype ()))
198+ )
191199 {
192200 std::ostringstream oss;
193201 oss << " Datatypes of patch data (" << dtype << " ) and dataset ("
You can’t perform that action at this time.
0 commit comments