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: Fred van Kempen
Subject: Re: [Tinycc-devel] initializer element is not constant for float comparison
Date: Sun, 21 May 2023 21:27:37 +0000 (UTC)

> 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?

Since you are taking the result of a numeric _expression_, which is auto-casted to 'int' type, yes, this should work.

In my opinion, "tiz a bugg!" :)

--Fred


reply via email to

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