diff options
| author | Tyge Løvset <[email protected]> | 2022-07-06 22:26:53 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-07-06 22:26:53 +0200 |
| commit | b94170eefce899d0b236804681d77fe026956fd9 (patch) | |
| tree | 9d1bad3bdfce085cc8ff8c567943ffd8750aa644 /include/stc/cbox.h | |
| parent | 6e91820d7cf632ff30b936c554a0bdf83c9e64b2 (diff) | |
| download | STC-modified-b94170eefce899d0b236804681d77fe026956fd9.tar.gz STC-modified-b94170eefce899d0b236804681d77fe026956fd9.zip | |
Version 3.7. Make sure to check NEWS/Changes in README.md for a few code-breaking API changes.
Diffstat (limited to 'include/stc/cbox.h')
| -rw-r--r-- | include/stc/cbox.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cbox.h b/include/stc/cbox.h index f1e410b1..c3a9dd02 100644 --- a/include/stc/cbox.h +++ b/include/stc/cbox.h @@ -139,11 +139,11 @@ STC_INLINE void _cx_memb(_reset_to)(_cx_self* self, _cx_value* p) { return out; } - STC_INLINE void _cx_memb(_copy)(_cx_self* self, _cx_self other) { - if (self->get == other.get) + STC_INLINE void _cx_memb(_assign)(_cx_self* self, const _cx_self ptr) { + if (self->get == ptr.get) return; _cx_memb(_drop)(self); - *self = _cx_memb(_clone)(other); + *self = _cx_memb(_clone)(ptr); } #endif // !_i_no_clone |
