mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
Library Forwarding: Fix accidental data copying when converting from host to guest layout
This commit is contained in:
1 parent
b892da72f3
commit
2359a9899c
1 file changed
+1
-1
@@ -368,7 +368,7 @@ T* unwrap_host(repack_wrapper<T*, T2>& val) {
|
||||
|
||||
template<typename T>
|
||||
struct host_to_guest_convertible {
|
||||
const host_layout<T> from;
|
||||
const host_layout<T>& from;
|
||||
|
||||
// Conversion from host to guest layout for non-pointers
|
||||
operator guest_layout<T>() const requires(!std::is_pointer_v<T>) {
|
||||
|
||||
Reference in new issue
Block a user