Skip to content

Commit ad00633

Browse files
committed
Fix assert
1 parent f966017 commit ad00633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/Inputs/NSSlowTaggedLocalizedString/NSSlowTaggedLocalizedString.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ - (id) description {
100100
}
101101

102102
- (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);
103+
assert(encoding == 1 /* ASCII */ || encoding == 4 /* UTF8 */);
104104
strncpy(buffer, contents, max);
105105
if (strlen(contents) > max) {
106106
leftover->location = max;

0 commit comments

Comments
 (0)