diff options
Diffstat (limited to 'src/liana')
| -rw-r--r-- | src/liana/list_cmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liana/list_cmp.h b/src/liana/list_cmp.h index ee9b3f8..30f6e7d 100644 --- a/src/liana/list_cmp.h +++ b/src/liana/list_cmp.h @@ -9,7 +9,7 @@ AL_IGNORE_WARNING("-Wunused-function") static void camu_db_num_from_path(str *path, s64 *id, s64 *index) { u32 last_slash = al_str_rfind(path, '/'); - if (last_slash == AL_WSTR_NPOS) { + if (last_slash == AL_WSTR_NO_POS) { return; } str sub = al_str_substr(path, last_slash + 1, path->length); @@ -20,7 +20,7 @@ static void camu_db_num_from_path(str *path, s64 *id, s64 *index) } u32 target = al_str_find(&sub, '_'); - if (target == AL_WSTR_NPOS) { + if (target == AL_WSTR_NO_POS) { return; } sub = al_str_substr(&sub, 0, target); @@ -32,7 +32,7 @@ static void camu_db_num_from_path(str *path, s64 *id, s64 *index) u32 ext_dot = al_str_rfind(path, '.'); u32 a_of_media = al_str_rfind(path, 'a'); - if (ext_dot == AL_WSTR_NPOS || a_of_media == AL_WSTR_NPOS) { + if (ext_dot == AL_WSTR_NO_POS || a_of_media == AL_WSTR_NO_POS) { return; } sub = al_str_substr(path, a_of_media + 1, ext_dot); |