Skip to content

Commit f65b9e8

Browse files
committed
Change intValue -> integerValue in RCTMultipartStreamReader
Summary: We assign the value to an NSInteger so we should convert the NSString to an NSInteger instead of an int. Build the app in Xcode and run it. Closes #15806 Differential Revision: D5767118 Pulled By: shergin fbshipit-source-id: b310511f13f5f4026d595a219d69811801d313c2
1 parent aa0b2ad commit f65b9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Base/RCTMultipartStreamReader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ - (void)emitProgress:(NSDictionary *)headers
7676
// Throttle progress events so we don't send more that around 60 per second.
7777
CFTimeInterval currentTime = CACurrentMediaTime();
7878

79-
NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] intValue] : 0;
79+
NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] integerValue] : 0;
8080
if (callback && (currentTime - _lastDownloadProgress > 0.016 || final)) {
8181
_lastDownloadProgress = currentTime;
8282
callback(headers, @(headersContentLength), @(contentLength));

0 commit comments

Comments
 (0)