tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] initializer element is not constant for float compari


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] initializer element is not constant for float comparison
Date: Mon, 22 May 2023 15:11:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 5/21/23 13:14, noneofyourbusiness wrote:
When initializing static variables with the result of float comparisons, tcc 
errors out. This works fine on clang without warning, therefore I assume this is a 
bug. The expression -1.0 < 0 should always evaluate to 1, no?
See attached code for an example.

Just pushed a fix on mob.

    Herman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]