diff options
Diffstat (limited to 'bin/expr/expr.y')
-rw-r--r-- | bin/expr/expr.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/expr/expr.y b/bin/expr/expr.y index 89f8cce..30704ed 100644 --- a/bin/expr/expr.y +++ b/bin/expr/expr.y @@ -540,7 +540,7 @@ op_colon(struct val *a, struct val *b) v = make_str(a->u.s + rm[1].rm_so); } else - v = make_integer((intmax_t)(rm[0].rm_eo - rm[0].rm_so)); + v = make_integer((intmax_t)(rm[0].rm_eo)); else if (rp.re_nsub == 0) v = make_integer((intmax_t)0); |