Warnings fixes

This commit is contained in:
Sorokin Alexei 2016-02-10 15:38:02 +03:00
parent ee18f17330
commit fc63ede018
2 changed files with 3 additions and 3 deletions

View File

@ -426,7 +426,7 @@ xed_document_input_stream_read (GInputStream *stream,
do
{
n = read_line (dstream, buffer + read, space_left);
n = read_line (dstream, (void *) ((gsize) buffer + read), space_left);
read += n;
space_left -= n;
} while (space_left > 0 && n != 0 && dstream->priv->bytes_partial == 0);
@ -451,7 +451,7 @@ xed_document_input_stream_read (GInputStream *stream,
newline = get_new_line (dstream);
memcpy (buffer + read, newline, newline_size);
memcpy ((void *) ((gsize) buffer + read), newline, newline_size);
read += newline_size;
dstream->priv->newline_added = TRUE;

View File

@ -153,7 +153,7 @@ try_convert (GCharsetConverter *converter,
do
{
res = g_converter_convert (G_CONVERTER (converter),
inbuf + nread,
(void *) ((gsize) inbuf + nread),
inbuf_size - nread,
out + nwritten,
out_size - nwritten,