Fix narrow warning in ds4_pad_handler.cpp
This commit is contained in:
@@ -535,8 +535,9 @@ void ds4_pad_handler::CheckAddDevice(hid_device* hidDevice, hid_device_info* hid
|
||||
else
|
||||
{
|
||||
ds4Dev->btCon = true;
|
||||
std::wstring wSerial(hidDevInfo->serial_number);
|
||||
serial = std::string(wSerial.begin(), wSerial.end());
|
||||
std::wstring_view wideSerial(hidDevInfo->serial_number);
|
||||
for (wchar_t ch : wideSerial)
|
||||
serial += static_cast<uchar>(ch);
|
||||
}
|
||||
|
||||
if (!GetCalibrationData(ds4Dev))
|
||||
|
||||
Reference in New Issue
Block a user