commit | 98d9922247ef21b0faf8c7d817650b8327052a4a | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Wed Nov 14 08:32:08 2012 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Wed Nov 14 11:12:07 2012 -0800 |
tree | b3442f0d03184e0da4921f7fa2a5ed87fbac20c6 | |
parent | 17158f4a36ed16c779477a56ec831da55e8128fe [diff] [blame] |
Fix build warnings Change-Id: Ic43bcca166a529a6431711b05a7fa21849b6a38b
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 @@ 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); } }