Skip to content

Commit

Permalink
lib1521: fix compiler warnings on the use of bad 'long' values
Browse files Browse the repository at this point in the history
Reported-by: Marcel Raad
Bug: cccac4f#commitcomment-22453387
  • Loading branch information
bagder committed Jun 8, 2017
1 parent 6c59074 commit 8020c97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/libtest/lib1521.c
Expand Up @@ -20,17 +20,17 @@
*
***************************************************************************/
#include "test.h"

#include "memdebug.h"
#include <limits.h>

/* This source code is generated by mk-lib1521.pl ! */

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
Expand Down
8 changes: 4 additions & 4 deletions tests/libtest/mk-lib1521.pl
Expand Up @@ -24,9 +24,9 @@
# Usage:
# cat ../../include/curl/curl.h | perl mk-lib1521.pl > lib1521.c

# minimum and maximum 32 signed values
my $minlong = - (1<<31)+1;
my $maxlong = (1<<31);
# minimum and maximum long signed values
my $minlong = "LONG_MIN";
my $maxlong = "LONG_MAX";

print <<HEADER
/***************************************************************************
Expand All @@ -51,8 +51,8 @@
*
***************************************************************************/
#include "test.h"
#include "memdebug.h"
#include <limits.h>
/* This source code is generated by mk-lib1521.pl ! */
Expand Down

0 comments on commit 8020c97

Please sign in to comment.