File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 2121# define SIZE_T_PF "%u"
2222#endif
2323
24- #if SIZEOF_OFF_T == 8
25- # ifdef PRIu64
26- # define OFF_T_PF "%" PRIu64
27- # else
28- # define OFF_T_PF "%llu"
29- # endif
24+ #ifdef PRIu64
25+ # define OFF_T_PF "%" PRIu64
3026#else
31- # ifdef PRIu32
32- # define OFF_T_PF "%" PRIu32
33- # else
34- # define OFF_T_PF "%lu"
35- # endif
27+ # define OFF_T_PF "%llu"
3628#endif
37-
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ int range_fetch_read_http_headers(struct range_fetch *rf) {
571571 p += 2 ;
572572 buflwr (buf );
573573 { /* Remove the trailing \r\n from the value */
574- int len = strcspn (p , "\r\n" );
574+ uint64_t len = strcspn (p , "\r\n" );
575575 p [len ] = 0 ;
576576 }
577577 /* buf is the header name (lower-cased), p the value */
You can’t perform that action at this time.
0 commit comments