foralex / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Assignment on declaration can change the type of the original variable #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
picoc> float b = 2;
picoc> printf("%f\n", b);
XXX
picoc> printf("%d\n", b);
2

Original issue reported on code.google.com by zik.sale...@gmail.com on 27 May 2009 at 10:08

GoogleCodeExporter commented 8 years ago
Fixed in r314

Original comment by zik.sale...@gmail.com on 2 Jun 2009 at 6:19