summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aiorecord.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aiorecord.cc b/src/aiorecord.cc
index 82cc9a1..0c25a29 100644
--- a/src/aiorecord.cc
+++ b/src/aiorecord.cc
@@ -184,7 +184,7 @@ int main(int argc, char *argv[])
short *p = (short*)pcm;
size_t sz = size / sizeof(short);
short max = 0;
- for(int i = 0; i < sz; i++) {
+ for(int i = 0; i < (int)sz; i++) {
if(abs(p[i]) > max) max = abs(p[i]);
}
printf("%d\n", (int)max);