diff options
Diffstat (limited to 'lib/std/strstrip.myr')
-rw-r--r-- | lib/std/strstrip.myr | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/strstrip.myr b/lib/std/strstrip.myr index a3d54fa..4f8a539 100644 --- a/lib/std/strstrip.myr +++ b/lib/std/strstrip.myr @@ -26,12 +26,11 @@ const strfstrip = {str /* strip reverse on str */ const strrstrip = {str - var i var end /* scan backwards for start of utf8 char */ end = str.len - for i = str.len; i != 0; i-- + for var i = str.len; i != 0; i-- if str[i - 1] & 0x80 == 0 || str[i-1] & 0xc0 != 0x80 if !isspace(decode(str[i-1:])) break |