diff options
author | Jonathan Boeing <jonathan.n.boeing@gmail.com> | 2015-02-09 20:01:35 -0700 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2015-05-03 10:49:32 -0400 |
commit | b15c5f186d2b1f55f4eacbeb35b2da99c5366dd7 (patch) | |
tree | 0fdcf77af7f50c08f57feaf685b41694a62fa8f1 | |
parent | 6c0ab8ba85a4324970bf37adfcc91b75ebd2a3ce (diff) | |
download | syslinux-b15c5f186d2b1f55f4eacbeb35b2da99c5366dd7.tar.gz syslinux-b15c5f186d2b1f55f4eacbeb35b2da99c5366dd7.tar.xz syslinux-b15c5f186d2b1f55f4eacbeb35b2da99c5366dd7.zip |
pxe: fix truncation warning
When building efi64, there's a size mismatch between the uint32_t
variable (32 bits) and the -1UL (64 bits). This fixes the warning:
large integer implicitly truncated to unsigned type
Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
-rw-r--r-- | core/fs/pxe/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/pxe/http.c b/core/fs/pxe/http.c index 0768c10e..bd18f3cb 100644 --- a/core/fs/pxe/http.c +++ b/core/fs/pxe/http.c @@ -50,7 +50,7 @@ static bool append_ch(char *str, size_t size, size_t *pos, int ch) static size_t cookie_len, header_len; static char *cookie_buf, *header_buf; -__export uint32_t SendCookies = -1UL; /* Send all cookies */ +__export uint32_t SendCookies = UINT_MAX; /* Send all cookies */ static size_t http_do_bake_cookies(char *q) { |