thradams / cake

Cake a C23 front end and transpiler written in C
http://thradams.com/cake/index.html
GNU General Public License v3.0
533 stars 21 forks source link

missing warning constant expression overflow (use safe int in constant expressions) #175

Closed thradams closed 2 weeks ago

thradams commented 6 months ago
int i = 2000000000 + 2000000000;
thradams commented 2 weeks ago

c:/main.c:1:9: warning: integer overflow results in '-294967296'. Exactly result is '4000000000'. [-Woverflow] 1 |int i = 2000000000 + 2000000000; | ~~~~~~~