Module: wine Branch: master Commit: bc1bcf0f31755254401712dc2bd1217096b94ed3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc1bcf0f31755254401712dc2b...
Author: Stefan Dösinger stefandoesinger@gmx.at Date: Thu Sep 1 23:46:46 2016 +0100
ddraw/tests: Make the vec parameter of compare_vec4 const.
Signed-off-by: Stefan Dösinger stefandoesinger@gmx.at Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ddraw/tests/ddraw4.c | 2 +- dlls/ddraw/tests/ddraw7.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ddraw/tests/ddraw4.c b/dlls/ddraw/tests/ddraw4.c index 988a82f..2c7eae1 100644 --- a/dlls/ddraw/tests/ddraw4.c +++ b/dlls/ddraw/tests/ddraw4.c @@ -68,7 +68,7 @@ static BOOL compare_float(float f, float g, unsigned int ulps) return TRUE; }
-static BOOL compare_vec4(struct vec4 *vec, float x, float y, float z, float w, unsigned int ulps) +static BOOL compare_vec4(const struct vec4 *vec, float x, float y, float z, float w, unsigned int ulps) { return compare_float(vec->x, x, ulps) && compare_float(vec->y, y, ulps) diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c index 48134c5..a193e38 100644 --- a/dlls/ddraw/tests/ddraw7.c +++ b/dlls/ddraw/tests/ddraw7.c @@ -76,7 +76,7 @@ static BOOL compare_vec3(struct vec3 *vec, float x, float y, float z, unsigned i && compare_float(vec->z, z, ulps); }
-static BOOL compare_vec4(struct vec4 *vec, float x, float y, float z, float w, unsigned int ulps) +static BOOL compare_vec4(const struct vec4 *vec, float x, float y, float z, float w, unsigned int ulps) { return compare_float(vec->x, x, ulps) && compare_float(vec->y, y, ulps)