Differences From Artifact [ce69904b51]:
- File src/OFIntrospection.m — part of check-in [e0b9167693] at 2016-02-21 15:37:42 on branch trunk — Make use of C99-style for loops (user: js, size: 12627) [annotate] [blame] [check-ins using]
To Artifact [5bbbc65fa4]:
- File
src/OFIntrospection.m
— part of check-in
[09a0d12bae]
at
2016-06-05 21:17:57
on branch trunk
— Always cast to unsigned char for to{upper,lower}()
This is required as passing something signed to it is an error on
NetBSD, but passing anything else than a char is undefined on Linux. (user: js, size: 12637) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
273 274 275 276 277 278 279 | if ((_attributes & OF_PROPERTY_READWRITE) && _setter == nil) { of_unichar_t first = [_name characterAtIndex: 0]; OFMutableString *tmp = [_name mutableCopy]; _setter = tmp; if (first < 0x80) { | | | 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | if ((_attributes & OF_PROPERTY_READWRITE) && _setter == nil) { of_unichar_t first = [_name characterAtIndex: 0]; OFMutableString *tmp = [_name mutableCopy]; _setter = tmp; if (first < 0x80) { [tmp setCharacter: toupper((unsigned char)first) atIndex: 0]; } [tmp prependString: @"set"]; [tmp makeImmutable]; } |
︙ | ︙ |