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