[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: odd behavior with stdlib.h and stdio.h
From:       Travis Siegel <tsiegel () softcon ! com>
Date:       2010-09-01 16:50:23
Message-ID: FF4F1269-0EDF-4AAE-8296-CDDD214C383D () softcon ! com
[Download RAW message or body]


On Sep 1, 2010, at 11:24 AM, Anders Magnusson wrote:

> On 09/01/2010 04:46 PM, Mattias Pantzare wrote:
>> On Wed, Sep 1, 2010 at 15:18, Travis Siegel<tsiegel@softcon.com>   
>> wrote:
>>
>>> I ran across an interesting behavior this morning, and thought I'd  
>>> post it
>>> here to see if anyone else has encountered this, and if so/not,  
>>> what (if
>>> anything) should be done about it.
>>> Here's a simple program that replicates the behavior.
>>>
>> I don't know if it is a pcc bug or not (it might not be), but the
>> work-around is to include stdio. It is not even a workaround, you
>> really should include stdio as the printf declaration is in stdio.h.
>>
> No matter, this should work anyway.  It was a bug causing floats not
> to be cast to double in the case of missing prototype.  Fixed now,  
> thanks
> for reporting it.
>
> -- Ragge

Thanks for that.
Glad to know  it wasn't just me. :)

Will grab the latest svn sources and try again.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic