mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-12 02:59:51 +00:00
cellMic: fix type conversion warning
This commit is contained in:
parent
43c3a15a50
commit
b5aac6d802
1 changed files with 1 additions and 1 deletions
|
@ -871,7 +871,7 @@ error_code cellMicGetDeviceAttr(s32 dev_num, CellMicDeviceAttr deviceAttributes,
|
||||||
if (*arg1 == 0)
|
if (*arg1 == 0)
|
||||||
{
|
{
|
||||||
// Calculate average volume of the channels
|
// Calculate average volume of the channels
|
||||||
*arg2 = std::accumulate(device.attr_chanvol.begin(), device.attr_chanvol.end(), 0) / device.attr_chanvol.size();
|
*arg2 = std::accumulate(device.attr_chanvol.begin(), device.attr_chanvol.end(), 0u) / ::size32(device.attr_chanvol);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue