aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-10 21:25:06 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-10 21:25:06 +0530
commit18bb64cd431235f696720150dfbcbfc761e19ef0 (patch)
tree3756a078b3148b91aeb449d7e76568009d761b79 /complete.cpp
parentd975187433ed71120d603ab2815d11b9c80ae8be (diff)
Fixed compilation with recent changes on Linux.
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/complete.cpp b/complete.cpp
index 2d139a0d..40963eba 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -594,7 +594,7 @@ int complete_is_valid_option( const wchar_t *str,
{
//PCA Rewrite this
- wchar_t *str_pos = wcschr(i->short_opt_str.c_str(), *a);
+ wchar_t *str_pos = const_cast<wchar_t*>(wcschr(i->short_opt_str.c_str(), *a));
if (str_pos )
{