mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-08-16 19:30:32 +03:00
Fix check in findOffset
This commit is contained in:
parent
7259743f99
commit
6ef86bc5d6
2
dist/rts/idris_utf8.c
vendored
2
dist/rts/idris_utf8.c
vendored
@ -105,7 +105,7 @@ char* idris_utf8_advance(char* str, int i) {
|
||||
|
||||
int idris_utf8_findOffset(char* str, int i) {
|
||||
int offset = 0;
|
||||
while(i > 0 && str != '\0') {
|
||||
while(i > 0 && *str != '\0') {
|
||||
int len = idris_utf8_charlen(str);
|
||||
str+=len;
|
||||
offset+=len;
|
||||
|
Loading…
Reference in New Issue
Block a user