From 114d512613487a2edeebba3244b71d5861000aef Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 17 Dec 2020 18:53:35 +0100 Subject: [PATCH] vcomp/tests: Explicitly request signed chars. Fixes a test failure on ARM. Signed-off-by: Alexandre Julliard --- dlls/vcomp/tests/vcomp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/vcomp/tests/vcomp.c b/dlls/vcomp/tests/vcomp.c index 0aea30815ec..478bb5d7cfe 100644 --- a/dlls/vcomp/tests/vcomp.c +++ b/dlls/vcomp/tests/vcomp.c @@ -30,17 +30,17 @@ static HMODULE vcomp_handle; typedef CRITICAL_SECTION *omp_lock_t; typedef CRITICAL_SECTION *omp_nest_lock_t; -static void (CDECL *p_vcomp_atomic_add_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_add_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_add_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_add_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_add_i8)(LONG64 *dest, LONG64 val); static void (CDECL *p_vcomp_atomic_add_r4)(float *dest, float val); static void (CDECL *p_vcomp_atomic_add_r8)(double *dest, double val); -static void (CDECL *p_vcomp_atomic_and_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_and_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_and_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_and_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_and_i8)(LONG64 *dest, LONG64 val); -static void (CDECL *p_vcomp_atomic_div_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_div_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_div_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_div_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_div_i8)(LONG64 *dest, LONG64 val); @@ -50,13 +50,13 @@ static void (CDECL *p_vcomp_atomic_div_ui1)(unsigned char *dest, unsigned cha static void (CDECL *p_vcomp_atomic_div_ui2)(unsigned short *dest, unsigned short val); static void (CDECL *p_vcomp_atomic_div_ui4)(unsigned int *dest, unsigned int val); static void (CDECL *p_vcomp_atomic_div_ui8)(ULONG64 *dest, ULONG64 val); -static void (CDECL *p_vcomp_atomic_mul_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_mul_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_mul_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_mul_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_mul_i8)(LONG64 *dest, LONG64 val); static void (CDECL *p_vcomp_atomic_mul_r4)(float *dest, float val); static void (CDECL *p_vcomp_atomic_mul_r8)(double *dest, double val); -static void (CDECL *p_vcomp_atomic_or_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_or_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_or_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_or_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_or_i8)(LONG64 *dest, LONG64 val); @@ -72,13 +72,13 @@ static void (CDECL *p_vcomp_atomic_shr_ui1)(unsigned char *dest, unsigned int static void (CDECL *p_vcomp_atomic_shr_ui2)(unsigned short *dest, unsigned int val); static void (CDECL *p_vcomp_atomic_shr_ui4)(unsigned int *dest, unsigned int val); static void (CDECL *p_vcomp_atomic_shr_ui8)(ULONG64 *dest, unsigned int val); -static void (CDECL *p_vcomp_atomic_sub_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_sub_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_sub_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_sub_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_sub_i8)(LONG64 *dest, LONG64 val); static void (CDECL *p_vcomp_atomic_sub_r4)(float *dest, float val); static void (CDECL *p_vcomp_atomic_sub_r8)(double *dest, double val); -static void (CDECL *p_vcomp_atomic_xor_i1)(char *dest, char val); +static void (CDECL *p_vcomp_atomic_xor_i1)(char *dest, signed char val); static void (CDECL *p_vcomp_atomic_xor_i2)(short *dest, short val); static void (CDECL *p_vcomp_atomic_xor_i4)(int *dest, int val); static void (CDECL *p_vcomp_atomic_xor_i8)(LONG64 *dest, LONG64 val); @@ -1535,7 +1535,7 @@ static void test_atomic_integer8(void) { struct { - void (CDECL *func)(char *, char); + void (CDECL *func)(char *, signed char); signed char v1, v2, expected; } tests1[] =