Fix null pointer constants
commitaa9093a1441bcf2bd6b5781f39aa382385c410b5
authorMichael Matz <matz@suse.de>
Tue, 16 Aug 2022 14:58:00 +0000 (16 16:58 +0200)
committerMichael Matz <matz@suse.de>
Tue, 16 Aug 2022 14:58:00 +0000 (16 16:58 +0200)
treef00bb824356c9e33e52c309c9c45e79242bf2543
parentc3e3a07ed413a6cb8c1a2b033eb2df07941fead7
Fix null pointer constants

an expression like 'i*0', even though it's value is constant and
can be evaluated at compile time is not an integer constant expression,
and hence no null pointer constant, and therefore the conditional
operator doesn't select the other type.
tcc.h
tccgen.c
tests/tests2/94_generic.c