From b5aac6d80272df8176528d22f238ab94adab34f3 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Mon, 5 Aug 2024 22:52:29 +0200 Subject: [PATCH] cellMic: fix type conversion warning --- rpcs3/Emu/Cell/Modules/cellMic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellMic.cpp b/rpcs3/Emu/Cell/Modules/cellMic.cpp index da4fa5930f..deea155221 100644 --- a/rpcs3/Emu/Cell/Modules/cellMic.cpp +++ b/rpcs3/Emu/Cell/Modules/cellMic.cpp @@ -871,7 +871,7 @@ error_code cellMicGetDeviceAttr(s32 dev_num, CellMicDeviceAttr deviceAttributes, if (*arg1 == 0) { // 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 {