diff options
author | Konrad Borowski <x.fix@o2.pl> | 2014-05-10 17:13:08 +0200 |
---|---|---|
committer | Konrad Borowski <x.fix@o2.pl> | 2014-05-10 17:13:08 +0200 |
commit | 6596d91c8264a8a0705736003c129a4422e91564 (patch) | |
tree | b44dc0ad40b316c1c0774d5673757c2355467fc5 /common.cpp | |
parent | cd7f1a15f86fd045d069d256ea7333d14c2913fa (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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |