We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f966017 commit ad00633Copy full SHA for ad00633
test/stdlib/Inputs/NSSlowTaggedLocalizedString/NSSlowTaggedLocalizedString.m
@@ -100,7 +100,7 @@ - (id) description {
100
}
101
102
- (BOOL)getBytes:(void *)buffer maxLength:(uint64_t)max usedLength:(uint64_t *)used encoding:(uint64_t)encoding options:(uint64_t)options range:(NSRange)range remainingRange:(NSRange *)leftover {
103
- assert(encoding == kCFStringEncodingASCII || encoding == kCFStringEncodingUTF8);
+ assert(encoding == 1 /* ASCII */ || encoding == 4 /* UTF8 */);
104
strncpy(buffer, contents, max);
105
if (strlen(contents) > max) {
106
leftover->location = max;
0 commit comments