| Index: webrtc/modules/audio_processing/beamformer/complex_matrix.h
|
| diff --git a/webrtc/modules/audio_processing/beamformer/complex_matrix.h b/webrtc/modules/audio_processing/beamformer/complex_matrix.h
|
| index f5be2b2f63c29a8e065e61fe22f933a9172f18e0..607354fc2bd00142410fe2666f7ee1145ba9f444 100644
|
| --- a/webrtc/modules/audio_processing/beamformer/complex_matrix.h
|
| +++ b/webrtc/modules/audio_processing/beamformer/complex_matrix.h
|
| @@ -27,10 +27,10 @@ class ComplexMatrix : public Matrix<complex<T> > {
|
| public:
|
| ComplexMatrix() : Matrix<complex<T> >() {}
|
|
|
| - ComplexMatrix(int num_rows, int num_columns)
|
| + ComplexMatrix(size_t num_rows, size_t num_columns)
|
| : Matrix<complex<T> >(num_rows, num_columns) {}
|
|
|
| - ComplexMatrix(const complex<T>* data, int num_rows, int num_columns)
|
| + ComplexMatrix(const complex<T>* data, size_t num_rows, size_t num_columns)
|
| : Matrix<complex<T> >(data, num_rows, num_columns) {}
|
|
|
| // Complex Matrix operations.
|
| @@ -51,7 +51,7 @@ class ComplexMatrix : public Matrix<complex<T> > {
|
|
|
| ComplexMatrix& ConjugateTranspose() {
|
| this->CopyDataToScratch();
|
| - int num_rows = this->num_rows();
|
| + size_t num_rows = this->num_rows();
|
| this->SetNumRows(this->num_columns());
|
| this->SetNumColumns(num_rows);
|
| this->Resize();
|
| @@ -82,8 +82,8 @@ class ComplexMatrix : public Matrix<complex<T> > {
|
| private:
|
| ComplexMatrix& ConjugateTranspose(const complex<T>* const* src) {
|
| complex<T>* const* elements = this->elements();
|
| - for (int i = 0; i < this->num_rows(); ++i) {
|
| - for (int j = 0; j < this->num_columns(); ++j) {
|
| + for (size_t i = 0; i < this->num_rows(); ++i) {
|
| + for (size_t j = 0; j < this->num_columns(); ++j) {
|
| elements[i][j] = conj(src[j][i]);
|
| }
|
| }
|
|
|