diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-26 23:18:12 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-26 23:18:12 -0800 |
commit | 9f5547327e3710303d3cb40b4bc55e74653a70ee (patch) | |
tree | a8359fc79e5a5f6a6e3940ef45ac85d667089421 /common.cpp | |
parent | b04fc5a39e59a0889b4fffd3e0456582ae923003 (diff) |
Fix for compile error identified in
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1197,7 +1197,12 @@ static size_t read_unquoted_escape(const wchar_t *input, wcstring *result, bool case L'U': { chars=8; - max_val = mini(WCHAR_MAX, 0x10FFFF); // Largest Unicode code point - see #1107 + max_val = WCHAR_MAX; + + // Don't exceed the largest Unicode code point - see #1107 + if (0x10FFFF < max_val) + max_val = (wchar_t)0x10FFFF; + break; } |