cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: unsigned/signed conversions

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 4 Mar 2004 16:27:01 +0100 (CET)

On Thu, 4 Mar 2004, Tor Arntsen wrote:

> because datasize is now signed instead of unsigned. But shouldn't it really
> be unsigned (size_t), as it used to be? I'm not sure what warnings it fixed,
> but maybe the fix should have been elsewhere.. anyway, the following should
> get rid of the current warning, although I'm not sure if that's the
> logically correct way of doing it.

The "problem" was originally that the function takes ssize_t arguments because
that's the type of the variable used in transfer.c that is passed in to the
function.

I now fixed it slightly different. I went back to size_t for the data and it
now converts the input arguments from ssize_t to size_t at the top of the
function.

One of these days I should go over the size_t/ssize_t mess and clean it up
once and for all...

> (I know I know, I should rather be looking at the last ssl problem of aix,
> but sometimes you have to just fool around a bit with other minor stuff :-)

Yeah, only 336 warnings left to go according to icc! ;-)

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-04