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

Unified Diff: webrtc/common_audio/real_fourier.cc

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/real_fourier.h ('k') | webrtc/common_audio/real_fourier_ooura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/real_fourier.cc
diff --git a/webrtc/common_audio/real_fourier.cc b/webrtc/common_audio/real_fourier.cc
index cb707e45803f3cfc1060cb8898b14a6529b2bc50..29b704bd63e5742fffbe8d320f853349b14f619c 100644
--- a/webrtc/common_audio/real_fourier.cc
+++ b/webrtc/common_audio/real_fourier.cc
@@ -29,17 +29,17 @@ rtc::scoped_ptr<RealFourier> RealFourier::Create(int fft_order) {
#endif
}
-int RealFourier::FftOrder(int length) {
- CHECK_GT(length, 0);
+int RealFourier::FftOrder(size_t length) {
+ CHECK_GT(length, 0U);
return WebRtcSpl_GetSizeInBits(static_cast<uint32_t>(length - 1));
}
-int RealFourier::FftLength(int order) {
+size_t RealFourier::FftLength(int order) {
CHECK_GE(order, 0);
- return 1 << order;
+ return static_cast<size_t>(1 << order);
}
-int RealFourier::ComplexLength(int order) {
+size_t RealFourier::ComplexLength(int order) {
return FftLength(order) / 2 + 1;
}
« no previous file with comments | « webrtc/common_audio/real_fourier.h ('k') | webrtc/common_audio/real_fourier_ooura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698