summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-document-input-stream.c4
-rw-r--r--pluma/pluma-smart-charset-converter.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/pluma/pluma-document-input-stream.c b/pluma/pluma-document-input-stream.c
index 947386c9..82e60acd 100644
--- a/pluma/pluma-document-input-stream.c
+++ b/pluma/pluma-document-input-stream.c
@@ -426,7 +426,7 @@ pluma_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 @@ pluma_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;
diff --git a/pluma/pluma-smart-charset-converter.c b/pluma/pluma-smart-charset-converter.c
index 5f3f8fe1..2d4c27b6 100644
--- a/pluma/pluma-smart-charset-converter.c
+++ b/pluma/pluma-smart-charset-converter.c
@@ -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,