[devhelp: 10/11] Parser: fix bytes_read variable type



commit 755ee7794ae1ba8e3649879c7c682cd338ce479a
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Nov 27 13:10:51 2016 +0100

    Parser: fix bytes_read variable type
    
    To fix a warning about a comparison between signed and unsigned int.
    
    gzread() returns an int.

 src/dh-parser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-parser.c b/src/dh-parser.c
index 7ae1624..3c7884d 100644
--- a/src/dh-parser.c
+++ b/src/dh-parser.c
@@ -502,7 +502,7 @@ parser_read_gz_file (DhParser     *parser,
         }
 
         while (TRUE) {
-                gsize bytes_read;
+                gint bytes_read;
 
                 bytes_read = gzread (file, buf, BYTES_PER_READ);
                 if (bytes_read == -1) {


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