Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Issue 2268163004: Fix error when accumulating floats in an int. (Closed)

Created:
4 years, 4 months ago by Max Morin WebRTC
Modified:
4 years, 3 months ago
Reviewers:
peah-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix error when accumulating floats in an int. I saw this when browsing the code, I think the intended behavior is accumulating to a float. BUG=none Committed: https://crrev.com/3f746ea26a74311651ae91d44b75e37ab17a7481 Cr-Commit-Position: refs/heads/master@{#13918}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Actually fix the problem. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M webrtc/modules/audio_processing/level_controller/level_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
Max Morin WebRTC
Peah: PTAL at this 2-byte patch. I added you as a reviewer since you are ...
4 years, 4 months ago (2016-08-24 14:44:02 UTC) #3
the sun
https://codereview.webrtc.org/2268163004/diff/1/webrtc/modules/audio_processing/level_controller/level_controller.cc File webrtc/modules/audio_processing/level_controller/level_controller.cc (right): https://codereview.webrtc.org/2268163004/diff/1/webrtc/modules/audio_processing/level_controller/level_controller.cc#newcode38 webrtc/modules/audio_processing/level_controller/level_controller.cc:38: std::accumulate(x.begin(), x.end(), 0.0) / static_cast<float>(x.size()); Nice catch! Make it ...
4 years, 4 months ago (2016-08-24 19:41:32 UTC) #5
peah-webrtc
On 2016/08/24 19:41:32, the sun wrote: > https://codereview.webrtc.org/2268163004/diff/1/webrtc/modules/audio_processing/level_controller/level_controller.cc > File webrtc/modules/audio_processing/level_controller/level_controller.cc > (right): > > ...
4 years, 3 months ago (2016-08-25 07:49:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2268163004/20001
4 years, 3 months ago (2016-08-25 09:58:49 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-25 11:00:24 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 11:00:30 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3f746ea26a74311651ae91d44b75e37ab17a7481
Cr-Commit-Position: refs/heads/master@{#13918}

Powered by Google App Engine
This is Rietveld 408576698