[byzanz] Cast type correctly to avoid signedness warnings



commit 4f96359a2e53c033454b8a7aeb1fc7c53997a9df
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jan 15 23:00:11 2010 +0100

    Cast type correctly to avoid signedness warnings

 src/byzanzqueueoutputstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/byzanzqueueoutputstream.c b/src/byzanzqueueoutputstream.c
index 4c3d3b7..311a206 100644
--- a/src/byzanzqueueoutputstream.c
+++ b/src/byzanzqueueoutputstream.c
@@ -120,7 +120,7 @@ byzanz_queue_output_stream_write (GOutputStream *output_stream,
     return count;
 
   result = g_output_stream_write (stream->output, buffer, 
-      MIN (count, stream->output_bytes), cancellable, error);
+      MIN ((goffset) count, stream->output_bytes), cancellable, error);
   if (result == -1)
     return -1;
 



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