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

Unified Diff: webrtc/modules/audio_processing/beamformer/matrix.h

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
Index: webrtc/modules/audio_processing/beamformer/matrix.h
diff --git a/webrtc/modules/audio_processing/beamformer/matrix.h b/webrtc/modules/audio_processing/beamformer/matrix.h
index 990f6a4a1b7ac6d74d907a368db6793a5fce230b..1a961aff07edd9fc32cc6871634527b1e665b5ff 100644
--- a/webrtc/modules/audio_processing/beamformer/matrix.h
+++ b/webrtc/modules/audio_processing/beamformer/matrix.h
@@ -95,7 +95,9 @@ class Matrix {
memcpy(&data_[0], data, num_rows_ * num_columns_ * sizeof(data_[0]));
}
- Matrix& CopyFromColumn(const T* const* src, int column_index, int num_rows) {
+ Matrix& CopyFromColumn(const T* const* src,
+ size_t column_index,
+ int num_rows) {
Resize(1, num_rows);
for (int i = 0; i < num_columns_; ++i) {
data_[i] = src[i][column_index];

Powered by Google App Engine
This is Rietveld 408576698