summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/tests/test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/audioflinger/tests/test_utils.h')
-rw-r--r--services/audioflinger/tests/test_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/tests/test_utils.h b/services/audioflinger/tests/test_utils.h
index f954292..e446216 100644
--- a/services/audioflinger/tests/test_utils.h
+++ b/services/audioflinger/tests/test_utils.h
@@ -195,7 +195,7 @@ static void createSine(void *vbuffer, size_t frames,
T yt = convertValue<T>(y);
for (size_t j = 0; j < channels; ++j) {
- buffer[i*channels + j] = yt / (j + 1);
+ buffer[i*channels + j] = yt / T(j + 1);
}
}
}
@@ -221,7 +221,7 @@ static void createChirp(void *vbuffer, size_t frames,
T yt = convertValue<T>(y);
for (size_t j = 0; j < channels; ++j) {
- buffer[i*channels + j] = yt / (j + 1);
+ buffer[i*channels + j] = yt / T(j + 1);
}
}
}