[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] bug repport, div function on windows

From: Pierre
Subject: [Tinycc-devel] bug repport, div function on windows
Date: Mon, 09 Dec 2013 17:24:31 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]