fix ast type error in float cast to bool

This commit is contained in:
Irmen de Jong
2022-12-28 22:09:49 +01:00
parent a7df094ff4
commit f5b202d438
2 changed files with 6 additions and 3 deletions

View File

@@ -3,10 +3,11 @@ TODO
For next release
^^^^^^^^^^^^^^^^
- make sure bool value is always 0 or 1 (all casts should convert), then:
- rewrite bool=bool^1 into bool=not bool
- make sure bool value is always 0 or 1 (all casts should convert, or actually, bool!=0 comparison should return 0 or 1), then:
- ast rewrite bool=bool^1 into bool=not bool
- should solve: bool bb = not bb -> larger code than bool bb ^= 1
- check that bool==0 / bool==1 / bool!=0 / bool != 1 are optimized away
...