diff options
author | Su Laus <sulau@freenet.de> | 2022-09-26 18:06:11 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2022-09-26 18:06:11 +0000 |
commit | 6ac3c7a0b0bbcfbc82882b9ece77787455036173 (patch) | |
tree | a2ce35b310f48f71973e6c9aad712d99929879cb /contrib | |
parent | 4c3ddd99b6efbdca9d0f2e91a53671edb0656fd7 (diff) | |
download | libtiff-git-6ac3c7a0b0bbcfbc82882b9ece77787455036173.tar.gz |
Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/iptcutil/iptcutil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/iptcutil/iptcutil.c b/contrib/iptcutil/iptcutil.c index 404b209e..22dce1aa 100644 --- a/contrib/iptcutil/iptcutil.c +++ b/contrib/iptcutil/iptcutil.c @@ -343,12 +343,12 @@ char *super_fgets(char *b, int *blen, FILE *file) c=fgetc(file); if (c == EOF || c == '\n') break; - if (((long)q - (long)b + 1 ) >= (long) len) + if ( (int)(q - b + 1) >= len) { long tlen; - tlen=(long)q-(long)b; + tlen=(int)(q - b); len<<=1; b=(char *) realloc((char *) b,(len+2)); if ((char *) b == (char *) NULL) @@ -363,7 +363,7 @@ char *super_fgets(char *b, int *blen, FILE *file) int tlen; - tlen=(long)q - (long)b; + tlen=(int)(q - b); if (tlen == 0) return (char *) NULL; b[tlen] = '\0'; @@ -532,7 +532,7 @@ int main(int argc, char *argv[]) quoted; next=0; - len = strlen(token); + len = (unsigned long)strlen(token); while(tokenizer(0, newstr, inputlen, token, "", "&", "", 0, &brkused, &next, "ed)==0) { @@ -541,7 +541,7 @@ int main(int argc, char *argv[]) char *s = &token[next-1]; - len -= convertHTMLcodes(s, strlen(s)); + len -= convertHTMLcodes(s, (int)strlen(s)); } } |