mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +00:00
Avoid compiler warnings.
This commit is contained in:
@@ -55,7 +55,7 @@ u8_conv_from_encoding (const char *fromcode,
|
||||
|
||||
for (i = 0; i < srclen; )
|
||||
{
|
||||
int count = u8_mblen (src + i, srclen - i);
|
||||
int count = u8_mblen ((const uint8_t *) src + i, srclen - i);
|
||||
/* We can rely on count > 0 because of the previous u8_check. */
|
||||
if (count <= 0)
|
||||
abort ();
|
||||
|
||||
@@ -63,7 +63,7 @@ u8_strconv_to_encoding (const uint8_t *string,
|
||||
{
|
||||
result = NULL;
|
||||
length = 0;
|
||||
if (mem_iconveha (string, u8_strlen (string) + 1,
|
||||
if (mem_iconveha ((const char *) string, u8_strlen (string) + 1,
|
||||
"UTF-8", tocode,
|
||||
handler == iconveh_question_mark, handler,
|
||||
NULL, &result, &length) < 0)
|
||||
|
||||
Reference in New Issue
Block a user