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
]
[Tinycc-devel] initializer element is not constant for float comparison
,
noneofyourbusiness
,
2023/05/21
Re: [Tinycc-devel] initializer element is not constant for float comparison
,
Fred van Kempen
<=
Re: [Tinycc-devel] initializer element is not constant for float comparison
,
ian
,
2023/05/22
Re: [Tinycc-devel] initializer element is not constant for float comparison
,
Herman ten Brugge
,
2023/05/22
Prev by Date:
[Tinycc-devel] initializer element is not constant for float comparison
Next by Date:
Re: [Tinycc-devel] initializer element is not constant for float comparison
Previous by thread:
[Tinycc-devel] initializer element is not constant for float comparison
Next by thread:
Re: [Tinycc-devel] initializer element is not constant for float comparison
Index(es):
Date
Thread