summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-02-10 15:38:02 +0300
committerSorokin Alexei <[email protected]>2016-02-10 16:07:36 +0300
commit7f5d4b30cd6956000f09dd3261097d1a84c5c7e6 (patch)
tree48a0c5a7ed6120bd63ebd3366e9ebb6fdeaa127a
parent1b313dd645030fc18dd37817a02705c41dde571e (diff)
downloadpluma-7f5d4b30cd6956000f09dd3261097d1a84c5c7e6.tar.bz2
pluma-7f5d4b30cd6956000f09dd3261097d1a84c5c7e6.tar.xz
Warnings fixes
-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,