Re: [PATCHES] Rejection of the smallest int8
Re: [PATCHES] Rejection of the smallest int8
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
I said: >> Attached is a patch to accept the smallest value of int8. > This has been proposed before. The problem with it is that it's > not portable: the C standard does not specify the direction of rounding > of integer division when the dividend is negative. BTW, does anyone have a copy of the ANSI C standard to check this? I have a draft of C99, which says that truncation is towards 0 regardless of the sign, but I think that this is something that was tightened up in C99; we can't rely on older compilers to follow it. regards, tom lane