cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] ssluse.c: Fixed compile error: conversion to 'int' from 'size_t'

From: Yang Tse <yangsita_at_gmail.com>
Date: Thu, 28 Jun 2012 17:20:11 +0200

On Thu, Jun 28, 2012 at 4:11 PM, Marc Hoersken <info_at_marc-hoersken.de> wrote:

> I am patient... I just thought that it would be a good idea to do the
> patching myself..

Fine, thanks.

0001-nss-Fixed-size_t-conversion-warnings.patch merged and pushed.

Afterwards I had to include warnless.h in nss.c now that
curlx_uztosi() and curlx_uztoui() are used in nss.c

0002-test-lib582-Fixed-size_t-conversion-warning.patch not good enough
fix. Widening from int to long is not enough given that there are
systems on which int and long have same size and we wouldn't fully
kill the warning.

To kill that warning, I've widened from int to ssize_t and used
curlx_sztosi() instead.

Thanks,

-- 
-=[Yang]=-
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-28