mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
Thread.h: fix warning
This commit is contained in:
parent
ad552c6b78
commit
49d8731c1c
1 changed files with 1 additions and 3 deletions
|
@ -280,12 +280,10 @@ class named_thread final : public Context, result_storage_t<Context>, thread_bas
|
||||||
{
|
{
|
||||||
auto tls_error_cb = []()
|
auto tls_error_cb = []()
|
||||||
{
|
{
|
||||||
const auto _this = thread_ctrl::get_current();
|
|
||||||
|
|
||||||
if constexpr (!result::empty)
|
if constexpr (!result::empty)
|
||||||
{
|
{
|
||||||
// Construct using default constructor in the case of failure
|
// Construct using default constructor in the case of failure
|
||||||
new (static_cast<result*>(static_cast<named_thread*>(_this))->get()) typename result::type();
|
new (static_cast<result*>(static_cast<named_thread*>(thread_ctrl::get_current()))->get()) typename result::type();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue