summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-11-14 15:43:18 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-14 15:43:19 -0800
commita9749e3468fda2288dda65d1ef52e0997f6d8897 (patch)
treefd8b050956aca1d253a7770fface302ce8e08f61 /services/audioflinger
parent656130a7bcff790dc9311754189d46bd4b911fbf (diff)
parent98d9922247ef21b0faf8c7d817650b8327052a4a (diff)
downloadframeworks_av-a9749e3468fda2288dda65d1ef52e0997f6d8897.zip
frameworks_av-a9749e3468fda2288dda65d1ef52e0997f6d8897.tar.gz
frameworks_av-a9749e3468fda2288dda65d1ef52e0997f6d8897.tar.bz2
Merge "Fix build warnings"
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/test-resample.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/test-resample.cpp b/services/audioflinger/test-resample.cpp
index 3b66530..b082e8c 100644
--- a/services/audioflinger/test-resample.cpp
+++ b/services/audioflinger/test-resample.cpp
@@ -177,7 +177,7 @@ int main(int argc, char* argv[]) {
double t = double(i) / input_freq;
double y = sin(M_PI * k * t * t);
int16_t yi = floor(y * 32767.0 + 0.5);
- for (size_t j=0 ; j<channels ; j++) {
+ for (size_t j=0 ; j<(size_t)channels ; j++) {
in[i*channels + j] = yi / (1+j);
}
}