Sync to Wine-20050930:

Alexandre Julliard <julliard@winehq.org>
- Avoid some warnings on 64-bit platforms.

svn path=/trunk/; revision=18321
This commit is contained in:
Gé van Geldorp 2005-10-08 09:33:47 +00:00
parent a9fba037ec
commit 3ccfb20218

View file

@ -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;
}