mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Avoid using memcpy(this) to prevent possible warnings
This commit is contained in:
@@ -530,7 +530,12 @@ struct Operand_ {
|
||||
//! \endcond
|
||||
|
||||
//! 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.
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user