diff --git a/reactos/lib/unicode/cptable.c b/reactos/lib/unicode/cptable.c index cf94fafe499..d68386a7764 100644 --- a/reactos/lib/unicode/cptable.c +++ b/reactos/lib/unicode/cptable.c @@ -154,7 +154,7 @@ static const union cptable * const cptables[59] = static int cmp_codepage( const void *codepage, const void *entry ) { - return (unsigned int)codepage - (*(union cptable **)entry)->info.codepage; + return (unsigned int)codepage - (*(const union cptable **)entry)->info.codepage; } diff --git a/reactos/lib/unicode/wctomb.c b/reactos/lib/unicode/wctomb.c index 5f9874018ba..68be134e7ae 100644 --- a/reactos/lib/unicode/wctomb.c +++ b/reactos/lib/unicode/wctomb.c @@ -142,7 +142,7 @@ static inline int wcstombs_sbcs( const struct sbcs_table *table, ret = -1; } - if (dst <= (char *)src && dst + 16 > (char *)src) + if (dst <= (const char *)src && dst + 16 > (const char *)src) { /* overlapping buffers, do it char by char */ while (srclen--)