From 3ccfb202188bf748c344040332de20773391749b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 8 Oct 2005 09:33:47 +0000 Subject: [PATCH] Sync to Wine-20050930: Alexandre Julliard - Avoid some warnings on 64-bit platforms. svn path=/trunk/; revision=18321 --- reactos/tools/unicode/cptable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/unicode/cptable.c b/reactos/tools/unicode/cptable.c index 58574b23fc3..74f7312b5f3 100644 --- a/reactos/tools/unicode/cptable.c +++ b/reactos/tools/unicode/cptable.c @@ -156,7 +156,7 @@ static const union cptable * const cptables[60] = static int cmp_codepage( const void *codepage, const void *entry ) { - return (unsigned int)codepage - (*(const union cptable *const *)entry)->info.codepage; + return *(unsigned int *)codepage - (*(const union cptable *const *)entry)->info.codepage; } @@ -165,7 +165,7 @@ const union cptable *wine_cp_get_table( unsigned int codepage ) { const union cptable **res; - if (!(res = bsearch( (void *)codepage, cptables, NB_CODEPAGES, + if (!(res = bsearch( &codepage, cptables, NB_CODEPAGES, sizeof(cptables[0]), cmp_codepage ))) return NULL; return *res; }