mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-10 15:44:44 +00:00
Fix narrow warning in ds4_pad_handler.cpp
This commit is contained in:
parent
1678b37aa0
commit
b4f416cb76
@ -535,8 +535,9 @@ void ds4_pad_handler::CheckAddDevice(hid_device* hidDevice, hid_device_info* hid
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ds4Dev->btCon = true;
|
ds4Dev->btCon = true;
|
||||||
std::wstring wSerial(hidDevInfo->serial_number);
|
std::wstring_view wideSerial(hidDevInfo->serial_number);
|
||||||
serial = std::string(wSerial.begin(), wSerial.end());
|
for (wchar_t ch : wideSerial)
|
||||||
|
serial += static_cast<uchar>(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GetCalibrationData(ds4Dev))
|
if (!GetCalibrationData(ds4Dev))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user