Re: curl_easy_setopt and typeof
Date: Mon, 14 Apr 2008 09:23:55 +0200
Nathan E. Moore wrote:
> --On Sunday, April 13, 2008 4:32 PM +0200 Michal Marek <mmarek_at_suse.cz>
>> Yes, but the docs say that you should pass a long here, not int. For the
> It is irrelevant what the docs say it is perfectly legal to pass a smaller
> type to a varargs function expecting a larger one. It will just work, just
> like it would for a normal function. There is no reason the type checker
> should be more restrictive than c. It should allow anything that can be
> promoted to long (char, short, int long, bitfields, enums).
char and short are promoted to int when passed to a vararg function,
yes. But the standard says nothing about long.
Received on 2008-04-14