diff options
Diffstat (limited to 'include/al')
| -rw-r--r-- | include/al/wstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/al/wstr.h b/include/al/wstr.h index 118a447..3eb366c 100644 --- a/include/al/wstr.h +++ b/include/al/wstr.h @@ -99,7 +99,7 @@ static inline void al_wstr_from_str(wstr *w, str *s) } // This is horrible. -static inline bool al_wstr_to_str(wstr *w, str *s) +static inline bool al_str_from_wstr(str *s, wstr *w) { // This is broken on Windows. Locale issue? #ifdef AL_HAVE_WIDE_STRING @@ -214,7 +214,7 @@ static inline bool al_wstr_tok(wstr *result, wchar_t delim) static inline s64 al_wstr_to_long(wstr *w, u32 base, bool *error) { str s; - al_wstr_to_str(w, &s); + al_str_from_wstr(&s, w); s64 num = al_str_to_long(&s, base, error); al_str_free(&s); return num; |