search for: 031bd32

Displaying 6 results from an estimated 6 matches for "031bd32".

2020 Jan 07
3
[PATCH] Fix lossy conversion of Content-Length
...#39;s a lossy conversion, so it was replaced by casting to int64_t instead. Signed-off-by: Adrian Ambro?ewicz <adrian.ambrozewicz at linux.intel.com> --- plugins/curl/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c index 031bd32..fe1330e 100644 --- a/plugins/curl/curl.c +++ b/plugins/curl/curl.c @@ -389,7 +389,7 @@ curl_open (int readonly) goto err; } - h->exportsize = (size_t) d; + h->exportsize = (int64_t) d; nbdkit_debug ("content length: %" PRIi64, h->exportsize); if (strncasecm...
2020 Jan 09
2
Re: [PATCH] Fix lossy conversion of Content-Length
...stead. > > > >Signed-off-by: Adrian Ambrożewicz <adrian.ambrozewicz@linux.intel.com> > >--- > >  plugins/curl/curl.c | 2 +- > >  1 file changed, 1 insertion(+), 1 deletion(-) > > > >diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c > >index 031bd32..fe1330e 100644 > >--- a/plugins/curl/curl.c > >+++ b/plugins/curl/curl.c > >@@ -389,7 +389,7 @@ curl_open (int readonly) > >      goto err; > >    } > > > >-  h->exportsize = (size_t) d; > >+  h->exportsize = (int64_t) d; > > Why is a ca...
2020 Jan 09
2
Re: [PATCH] Fix lossy conversion of Content-Length
...żewicz <adrian.ambrozewicz@linux.intel.com> > >>> --- > >>> plugins/curl/curl.c | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>> > >>> diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c > >>> index 031bd32..fe1330e 100644 > >>> --- a/plugins/curl/curl.c > >>> +++ b/plugins/curl/curl.c > >>> @@ -389,7 +389,7 @@ curl_open (int readonly) > >>> goto err; > >>> } > >>> > >>> - h->exportsize = (size_t) d; >...
2020 Jan 08
0
Re: [PATCH] Fix lossy conversion of Content-Length
...eplaced by casting to int64_t instead. > > Signed-off-by: Adrian Ambrożewicz <adrian.ambrozewicz@linux.intel.com> > --- >  plugins/curl/curl.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c > index 031bd32..fe1330e 100644 > --- a/plugins/curl/curl.c > +++ b/plugins/curl/curl.c > @@ -389,7 +389,7 @@ curl_open (int readonly) >      goto err; >    } > > -  h->exportsize = (size_t) d; > +  h->exportsize = (int64_t) d; Why is a cast needed at all? This is C, an implicit...
2020 Jan 09
0
Re: [PATCH] Fix lossy conversion of Content-Length
...t; Signed-off-by: Adrian Ambrożewicz <adrian.ambrozewicz@linux.intel.com> >>> --- >>>  plugins/curl/curl.c | 2 +- >>>  1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c >>> index 031bd32..fe1330e 100644 >>> --- a/plugins/curl/curl.c >>> +++ b/plugins/curl/curl.c >>> @@ -389,7 +389,7 @@ curl_open (int readonly) >>>      goto err; >>>    } >>> >>> -  h->exportsize = (size_t) d; >>> +  h->exportsize = (int...
2020 Jan 10
0
[PATCH v2] Fix lossy conversion of Content-Length
.... On 32-bit systems it's a lossy conversion, so it was removed altogether. Signed-off-by: Adrian Ambrożewicz <adrian.ambrozewicz@linux.intel.com> --- plugins/curl/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c index 031bd32..633840a 100644 --- a/plugins/curl/curl.c +++ b/plugins/curl/curl.c @@ -389,7 +389,7 @@ curl_open (int readonly) goto err; } - h->exportsize = (size_t) d; + h->exportsize = d; nbdkit_debug ("content length: %" PRIi64, h->exportsize); if (strncasecmp (url, &q...