gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: Fixed compiler warning for 32-bit


From: gnunet
Subject: [libmicrohttpd] branch master updated: Fixed compiler warning for 32-bit
Date: Mon, 28 Dec 2020 19:35:26 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 3be7e069 Fixed compiler warning for 32-bit
3be7e069 is described below

commit 3be7e06961015dcbd5a22f63a73aad79038bdfdf
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Dec 28 18:10:42 2020 +0300

    Fixed compiler warning for 32-bit
---
 src/microhttpd/connection.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 166695fb..53d980d5 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2176,8 +2176,10 @@ process_request_body (struct MHD_Connection *connection)
   {
     /* already queued a response, discard remaining upload
        (but not more, there might be another request after it) */
-    uint64_t purge = MHD_MIN (connection->remaining_upload_size,
-                              connection->read_buffer_offset);
+    size_t purge;
+
+    purge = (size_t) MHD_MIN (connection->remaining_upload_size,
+                              (uint64_t) connection->read_buffer_offset);
     connection->remaining_upload_size -= purge;
     if (connection->read_buffer_offset > purge)
       memmove (connection->read_buffer,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]