David Mertens wrote:
Hey everyone -
I found this question from somebody use tcc v0.9.24:
http://stackoverflow.com/questions/18417788/pow-cast-to-integer-unexpected-result
The basic question is, "Why does tcc's compilation output (100, 99)
whereas other compilers output (100, 100)?"
|#include <stdio.h>
#include <math.h>
int main(void)
{
printf("%d, ", (int) pow(10, 2));
printf("%d", (int) pow(10, 2));
return 0;
}|
I found a patch on my tinycc git.
http://repo.or.cz/w/tinycc.git/commitdiff/73faaea227a53e365dd75f1dba7a5071c7b5e541
--- grischka
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel