diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-05 13:58:48 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-05 13:58:48 -0800 |
commit | 4df57fda09c04f71a595154ca6962a95666b3685 (patch) | |
tree | f49faae476f3f419df44e4da11690ee8e94f7705 /function.cpp | |
parent | 6f45832aed0136e9f891da8eaa754c2b7f378848 (diff) |
Incorporate Siteshwar's patch for building on Linux
Diffstat (limited to 'function.cpp')
-rw-r--r-- | function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/function.cpp b/function.cpp index 760d05f4..a9e1f619 100644 --- a/function.cpp +++ b/function.cpp @@ -176,7 +176,7 @@ static void autoload_names( array_list_t *out, int get_hidden ) if( !get_hidden && fn[0] == L'_' ) continue; - suffix = wcsrchr( fn, L'.' ); + suffix = const_cast<wchar_t*>(wcsrchr( fn, L'.' )); if( suffix && (wcscmp( suffix, L".fish" ) == 0 ) ) { const wchar_t *dup; |