diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 8 |
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 */ |