diff options
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
-rw-r--r-- | tvix/eval/src/builtins/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index c841f9fc6a29..d0c5bf5568b9 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -871,7 +871,7 @@ mod pure_builtins { } let end = if len < 0 { - x.as_str().len() as usize + x.as_str().len() } else { cmp::min(beg + (len as usize), x.as_str().len()) }; |