diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-01-19 20:34:06 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-01-19 20:34:06 +0200 |
commit | 9c9c911c9974c6a50116b4ea9c4a047bc94fc9d5 (patch) | |
tree | 61282c73836b855b081a4d883f5bd0d28a75e54c /node.c | |
parent | b4a1aa90519d34c87b3a6699b77a24f39b1b22c1 (diff) | |
download | egawk-9c9c911c9974c6a50116b4ea9c4a047bc94fc9d5.tar.gz egawk-9c9c911c9974c6a50116b4ea9c4a047bc94fc9d5.tar.bz2 egawk-9c9c911c9974c6a50116b4ea9c4a047bc94fc9d5.zip |
Make single byte caching more elegant.
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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((unsigned char)*sp)) { + if (is_valid_character(*sp)) { count = 1; - wc = btowc_cache[(unsigned char)*sp]; + wc = btowc_cache(*sp); } else count = mbrtowc(& wc, sp, src_count, & mbs); switch (count) { |