aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-18 11:00:05 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-18 11:18:04 +0300
commitf71019f00b1d4b31b01dac2f98b46040cdd67b7e (patch)
tree992b3b69b72bef98044edb3d9d491391ec94c490
parentb0a2a0add1260c25b8b8f807fdddc218a4920293 (diff)
downloadlibmicrohttpd-f71019f00b1d4b31b01dac2f98b46040cdd67b7e.tar.gz
libmicrohttpd-f71019f00b1d4b31b01dac2f98b46040cdd67b7e.zip
MHD_get_version(): fixed signed value bit shift
-rw-r--r--src/microhttpd/daemon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index fa4715e9..66f852d6 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -7901,11 +7901,11 @@ MHD_get_version (void)
7901 int res = MHD_snprintf_ (ver, 7901 int res = MHD_snprintf_ (ver,
7902 sizeof(ver), 7902 sizeof(ver),
7903 "%x.%x.%x", 7903 "%x.%x.%x",
7904 (((int) MHD_VERSION >> 24) & 0xFF), 7904 (int) (((uint32_t) MHD_VERSION >> 24) & 0xFF),
7905 (((int) MHD_VERSION >> 16) & 0xFF), 7905 (int) (((uint32_t) MHD_VERSION >> 16) & 0xFF),
7906 (((int) MHD_VERSION >> 8) & 0xFF)); 7906 (int) (((uint32_t) MHD_VERSION >> 8) & 0xFF));
7907 if ((0 >= res) || (sizeof(ver) <= res)) 7907 if ((0 >= res) || (sizeof(ver) <= res))
7908 return "0.0.0"; /* Can't return real version*/ 7908 return "0.0.0"; /* Can't return real version */
7909 } 7909 }
7910 return ver; 7910 return ver;
7911#endif /* !PACKAGE_VERSION */ 7911#endif /* !PACKAGE_VERSION */