… | … | ||
---|---|---|---|
162 | #endif | 162 | #endif |
163 | } | 163 | } |
164 | } | 164 | } |
165 | 165 | ||
166 | /* adds two STRLENs together, slow, and with paranoia */ | 166 | /* adds two STRLENs together, slow, and with paranoia */ |
167 | STRLEN | 167 | static STRLEN |
168 | strlen_sum (STRLEN l1, STRLEN l2) | 168 | strlen_sum (STRLEN l1, STRLEN l2) |
169 | { | 169 | { |
170 | size_t sum = l1 + l2; | 170 | size_t sum = l1 + l2; |
171 | 171 | ||
172 | if (sum < (size_t)l2 || sum != (size_t)(STRLEN)sum) | 172 | if (sum < (size_t)l2 || sum != (size_t)(STRLEN)sum) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |