cURL / Mailing Lists / curl-library / Single Mail


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

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

On Thu, Jun 28, 2012 at 4:11 PM, Marc Hoersken <> 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.


List admin:
Received on 2012-06-28