summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utests/compiler_smoothstep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/compiler_smoothstep.cpp b/utests/compiler_smoothstep.cpp
index 760063b9..363ea7e9 100644
--- a/utests/compiler_smoothstep.cpp
+++ b/utests/compiler_smoothstep.cpp
@@ -34,7 +34,7 @@ void compiler_smoothstep(void)
OCL_MAP_BUFFER(2);
for (int i = 0; i < n; ++i) {
float a = 0.1f * (rand() & 15) - 0.75f;
- float b = a + 0.1f * (rand() & 15);
+ float b = a + 0.1f * (rand() & 15) + 0.1f;
float c = 0.1f * (rand() & 15) - 0.75f;
src1[i] = ((float*)buf_data[0])[i] = a;
src2[i] = ((float*)buf_data[1])[i] = b;