Changeset 6120b7b in mainline
- Timestamp:
- 2025-04-14T08:37:32Z (5 days ago)
- Branches:
- master
- Children:
- 2a5d4649
- Parents:
- 6d0e133
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/str.c
r6d0e133 r6120b7b 156 156 static inline int _char_continuation_bytes(char32_t c) 157 157 { 158 if ((c & ~LO_MASK_32(7)) == 0) 159 return 0; 160 158 161 if ((c & ~LO_MASK_32(11)) == 0) 159 162 return 1; … … 223 226 /* Determine code length */ 224 227 225 unsignedint cbytes = _continuation_bytes(b0);226 unsignedint b0_bits = 6 - cbytes; /* Data bits in first byte */228 int cbytes = _continuation_bytes(b0); 229 int b0_bits = 6 - cbytes; /* Data bits in first byte */ 227 230 228 231 if (cbytes < 0 || *offset + cbytes > size)
Note:
See TracChangeset
for help on using the changeset viewer.