Hello,
Just post for a bug report, or I have done something wrong.
the div function return bad result

#include <stdio.h>
#include <stdlib.h>

div_t Te;

void main(void)
{
  Te = div(1000, 33);
  printf("Res0 = %d %d\n", Te.quot, Te.rem);
}

return 0 4077744
(should return 30 10)

Tested with tcc 0.9.26 win32 version on XP

I have used last tcc archive tcc-0.9.26-win32-bin.zip

I'm not able to fix the tcc code because too complicated for me,
I somebody could help me.
Thanks.
Pierre.

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to