Changes in typecast?

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


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 ???

Schoch Christian

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

To unsubscribe from this list: send the line "unsubscribe linux-gcc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Index of Archives]     [Kernel]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux