aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib1521.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-09 01:02:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-09 01:02:12 +0200
commitb94a2cdfe641a9094a2352f3f38b02ead3ffe8d5 (patch)
tree483e27457ea007c61fefe2e814df9528dcbb2145 /tests/libtest/lib1521.c
parent844896d06416c9fdcacad5159f2a1a1d0293b9e5 (diff)
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
Diffstat (limited to 'tests/libtest/lib1521.c')
-rw-r--r--tests/libtest/lib1521.c6
1 files changed, 3 insertions, 3 deletions
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 <limits.h>
/* 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