aboutsummaryrefslogtreecommitdiff
path: root/libcpp/charset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp/charset.cc')
-rw-r--r--libcpp/charset.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/charset.cc b/libcpp/charset.cc
index d492f66..7b625c9 100644
--- a/libcpp/charset.cc
+++ b/libcpp/charset.cc
@@ -1891,7 +1891,7 @@ cpp_valid_utf8_p (const char *buffer, size_t num_bytes)
invalid because they cannot be represented in UTF-16.
Reject such values.*/
- if (cp >= UCS_LIMIT)
+ if (cp > UCS_LIMIT)
return false;
}
/* No problems encountered. */