Avoid using memcpy(this) to prevent possible warnings

This commit is contained in:
kobalicek
2024-03-24 23:55:38 +01:00
parent 268bce7952
commit e5d7c0bd5d

View File

@@ -530,7 +530,12 @@ struct Operand_ {
//! \endcond //! \endcond
//! Initializes the operand from `other` operand (used by operator overloads). //! Initializes the operand from `other` operand (used by operator overloads).
ASMJIT_INLINE_NODEBUG void copyFrom(const Operand_& other) noexcept { memcpy(this, &other, sizeof(Operand_)); } ASMJIT_INLINE_NODEBUG void copyFrom(const Operand_& other) noexcept {
_signature._bits = other._signature._bits;
_baseId = other._baseId;
_data[0] = other._data[0];
_data[1] = other._data[1];
}
//! Resets the `Operand` to none. //! Resets the `Operand` to none.
//! //!