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

Unified Diff: webrtc/system_wrappers/interface/aligned_array.h

Issue 1227893002: Update audio code to use size_t more correctly, webrtc/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comment Created 5 years, 5 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_types.h ('k') | webrtc/system_wrappers/source/aligned_array_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/system_wrappers/interface/aligned_array.h
diff --git a/webrtc/system_wrappers/interface/aligned_array.h b/webrtc/system_wrappers/interface/aligned_array.h
index 8278af2ae3cae482210371053888de0bf39aac16..3648c7c1940dc153892bf864d363209ada17bb53 100644
--- a/webrtc/system_wrappers/interface/aligned_array.h
+++ b/webrtc/system_wrappers/interface/aligned_array.h
@@ -20,7 +20,7 @@ namespace webrtc {
// aligned to the given byte alignment.
template<typename T> class AlignedArray {
public:
- AlignedArray(int rows, int cols, int alignment)
+ AlignedArray(int rows, size_t cols, int alignment)
: rows_(rows),
cols_(cols),
alignment_(alignment) {
@@ -58,12 +58,12 @@ template<typename T> class AlignedArray {
return head_row_[row];
}
- T& At(int row, int col) {
+ T& At(int row, size_t col) {
CHECK_LE(col, cols_);
return Row(row)[col];
}
- const T& At(int row, int col) const {
+ const T& At(int row, size_t col) const {
CHECK_LE(col, cols_);
return Row(row)[col];
}
@@ -72,13 +72,13 @@ template<typename T> class AlignedArray {
return rows_;
}
- int cols() const {
+ size_t cols() const {
return cols_;
}
private:
int rows_;
- int cols_;
+ size_t cols_;
int alignment_;
T** head_row_;
};
« no previous file with comments | « webrtc/common_types.h ('k') | webrtc/system_wrappers/source/aligned_array_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698