summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 74e3adc..6ebdec4 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -825,6 +825,7 @@ static unsigned long getvar_i_int(var *v)
* of target type range. Try to widen it as much as possible */
if (d >= 0)
return (unsigned long)d;
+ /* Why? Think about d == -4294967295.0 (assuming 32bit longs) */
return - (long) (unsigned long) (-d);
}