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

Unified Diff: media/base/audio_bus.cc

Issue 12043004: Fix media/base 64-bit compilation issues (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « media/base/audio_bus.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_bus.cc
===================================================================
--- media/base/audio_bus.cc (revision 177892)
+++ media/base/audio_bus.cc (working copy)
@@ -90,10 +90,9 @@
}
}
-static void ValidateConfig(int channels, int frames) {
+static void ValidateConfig(size_t channels, int frames) {
CHECK_GT(frames, 0);
- CHECK_GT(channels, 0);
- CHECK_LE(channels, limits::kMaxChannels);
+ CHECK_LE(channels, static_cast<size_t>(limits::kMaxChannels));
}
static void CheckOverflow(int start_frame, int frames, int total_frames) {
« no previous file with comments | « media/base/audio_bus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698