[pan] Fix warning in mime-utils.cc



commit ffd48ba3a18ee1dc8739c18dd835004ede3aa7dc
Author: Dominique Dumont <dod debian org>
Date:   Fri Nov 12 18:28:45 2021 +0100

    Fix warning in mime-utils.cc
    
    Fix:
    warning: argument 1 range [18446744071562067968, 18446744073709551615]
    exceeds maximum object size 9223372036854775807
    [-Walloc-size-larger-than=]

 pan/usenet-utils/mime-utils.cc | 4 ++--
 pan/usenet-utils/mime-utils.h  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pan/usenet-utils/mime-utils.cc b/pan/usenet-utils/mime-utils.cc
index 9e51abe..f5d7620 100644
--- a/pan/usenet-utils/mime-utils.cc
+++ b/pan/usenet-utils/mime-utils.cc
@@ -1024,12 +1024,12 @@ namespace
 #ifdef HAVE_GMIME_CRYPTO
 GMimeMessage*
 mime :: construct_message (GMimeStream    ** istreams,
-                           int               qty,
+                           unsigned int      qty,
                            GPGDecErr      &  err)
 #else
 GMimeMessage*
 mime :: construct_message (GMimeStream    ** istreams,
-                           int               qty)
+                           unsigned int      qty)
 #endif
 {
   const char * message_id = "Foo <bar@mum>";
diff --git a/pan/usenet-utils/mime-utils.h b/pan/usenet-utils/mime-utils.h
index 5c9843c..ef5d713 100644
--- a/pan/usenet-utils/mime-utils.h
+++ b/pan/usenet-utils/mime-utils.h
@@ -81,12 +81,12 @@ namespace pan
 #ifdef HAVE_GMIME_CRYPTO
     static GMimeMessage *
     construct_message (GMimeStream      ** istreams,
-                       int                 qty,
+                       unsigned int        qty,
                        GPGDecErr         &);
 #else
     static GMimeMessage *
     construct_message (GMimeStream      ** istreams,
-                       int                 qty);
+                       unsigned int        qty);
 #endif
     static const char *
     get_charset (GMimeMessage * message);


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