[gmime] fixed more compile warnings



commit 418fb4eacb0e53a332155fdb6aad4f5ea29ae241
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Apr 25 20:56:02 2009 -0400

    fixed more compile warnings
---
 gmime/gmime-stream-mem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gmime/gmime-stream-mem.c b/gmime/gmime-stream-mem.c
index 67d0c93..d9c1cf9 100644
--- a/gmime/gmime-stream-mem.c
+++ b/gmime/gmime-stream-mem.c
@@ -164,7 +164,7 @@ stream_write (GMimeStream *stream, const char *buf, size_t len)
 	}
 	
 	if (stream->bound_end == -1 && stream->position + len > mem->buffer->len) {
-		g_byte_array_set_size (mem->buffer, stream->position + len);
+		g_byte_array_set_size (mem->buffer, (guint) stream->position + len);
 		bound_end = mem->buffer->len;
 	} else
 		bound_end = stream->bound_end;
@@ -275,7 +275,7 @@ stream_seek (GMimeStream *stream, gint64 offset, GMimeSeekWhence whence)
 			return -1;
 		}
 		
-		g_byte_array_set_size (mem->buffer, real);
+		g_byte_array_set_size (mem->buffer, (guint) real);
 	}
 	
 	stream->position = real;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]