From b94a2cdfe641a9094a2352f3f38b02ead3ffe8d5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 9 Jun 2017 01:02:12 +0200 Subject: lib1521: fix compiler warnings on the use of bad 'long' values Reported-by: Marcel Raad Bug: https://github.com/curl/curl/commit/cccac4fb2b20d6ed87da7978408c3ecacc464fe4#commitcomment-22453387 --- tests/libtest/lib1521.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/libtest/lib1521.c') diff --git a/tests/libtest/lib1521.c b/tests/libtest/lib1521.c index 367680198..dee85a238 100644 --- a/tests/libtest/lib1521.c +++ b/tests/libtest/lib1521.c @@ -20,8 +20,8 @@ * ***************************************************************************/ #include "test.h" - #include "memdebug.h" +#include /* This source code is generated by mk-lib1521.pl ! */ @@ -29,8 +29,8 @@ struct data { char *blaha; }; -#define LO -2147483647 -#define HI 2147483648 +#define LO LONG_MIN +#define HI LONG_MAX #define OFF_VAL (curl_off_t) 3123123123 #define OFF_LO (curl_off_t) LO #define OFF_HI (curl_off_t) HI -- cgit v1.2.3