aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.cpp
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <x.fix@o2.pl>2014-05-10 17:13:08 +0200
committerGravatar Konrad Borowski <x.fix@o2.pl>2014-05-10 17:13:08 +0200
commit6596d91c8264a8a0705736003c129a4422e91564 (patch)
treeb44dc0ad40b316c1c0774d5673757c2355467fc5 /common.cpp
parentcd7f1a15f86fd045d069d256ea7333d14c2913fa (diff)
Fix prompt under Windows.
The fix is obviously a hack caused by that NOT_A_WCHAR doesn't fit in wchar_t. Better fix would be nice.
Diffstat (limited to 'common.cpp')
-rw-r--r--common.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.cpp b/common.cpp
index ac0181d3..f02626d3 100644
--- a/common.cpp
+++ b/common.cpp
@@ -1619,8 +1619,9 @@ static bool unescape_string_internal(const wchar_t * const input, const size_t i
}
}
+ wchar_t not_a_wchar = NOT_A_WCHAR;
/* Now maybe append the char */
- if (to_append != NOT_A_WCHAR)
+ if (to_append != not_a_wchar)
{
result.push_back(to_append);
}