Skip to content

Commit c5cc618

Browse files
committed
unicode_traits const CharT* -> const uint8_t*
1 parent 2576a56 commit c5cc618

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

include/jsoncons/config/jsoncons_config.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ namespace jsoncons {
276276
#define JSONCONS_VISITOR_RETURN return true
277277
#endif
278278

279+
// Loop unrolling
280+
281+
#define JSONCONS_REPEAT8(x) { x x x x x x x x }
282+
279283
#endif // JSONCONS_CONFIG_JSONCONS_CONFIG_HPP
280284

281285

include/jsoncons/utility/unicode_traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ namespace unicode_traits {
13361336
ec = r.ec;
13371337
break;
13381338
}
1339-
it = r.it;
1339+
it = r.ptr;
13401340
}
13411341
return ec == conv_errc() && it == end ? count : 0;
13421342
}

0 commit comments

Comments
 (0)