awk: add a comment
This commit is contained in:
parent
fd6b5ad137
commit
665eaff3b1
@ -825,6 +825,7 @@ static unsigned long getvar_i_int(var *v)
|
|||||||
* of target type range. Try to widen it as much as possible */
|
* of target type range. Try to widen it as much as possible */
|
||||||
if (d >= 0)
|
if (d >= 0)
|
||||||
return (unsigned long)d;
|
return (unsigned long)d;
|
||||||
|
/* Why? Think about d == -4294967295.0 (assuming 32bit longs) */
|
||||||
return - (long) (unsigned long) (-d);
|
return - (long) (unsigned long) (-d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user