Changes in typecast?

Christian Schoch <[email protected]> Tue, 9 Nov 2010 07:03:18 +0100
Newsgroups org.kernel.vger.linux-gcc
Message-ID <[email protected]>
I had some different results when compiling the SCTP kernel module.

The point is in following equation:

abs(tp->srtt - rtt)

srtt and rtt are both of type __u32, the abs-macro is defined as abs(long).

Some time ago, I had to do a patch with
(__u32) abs( (long)srtt - (long) rtt))
for the correct result of abs(), which I do not need any more.

Has there been any changes in the last revisions of gcc regarding this 
point ???


Regards,
Schoch Christian





----- Ende der weitergeleiteten Nachricht -----