aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.c b/node.c
index 7a926f3d..bbeb629c 100644
--- a/node.c
+++ b/node.c
@@ -708,9 +708,9 @@ str2wstr(NODE *n, size_t **ptr)
* big speed up. Thanks to Ulrich Drepper for the tip.
* 11/2010: Thanks to Paolo Bonzini for some even faster code.
*/
- if (is_valid_character(*sp)) {
+ if (is_valid_character((unsigned char)*sp)) {
count = 1;
- wc = btowc_cache[*sp];
+ wc = btowc_cache[(unsigned char)*sp];
} else
count = mbrtowc(& wc, sp, src_count, & mbs);
switch (count) {