@@ -395,7 +395,7 @@ public struct JSONParserIterator<Iter: IteratorProtocol>: JSONEventIterator wher
395395 }
396396 #endif
397397 /// Invoke this after parsing the "e" character.
398- @ inline ( __always ) func parseExponent( ) throws -> JSONEvent {
398+ func parseExponent( ) throws -> JSONEvent {
399399 let c = try bumpRequired ( )
400400 tempBuffer. append ( Int8 ( truncatingBitPattern: c. value) )
401401 switch c {
@@ -420,7 +420,7 @@ public struct JSONParserIterator<Iter: IteratorProtocol>: JSONEventIterator wher
420420 }
421421 #endif
422422 tempBuffer. append ( 0 )
423- return . doubleValue( tempBuffer. withUnsafeBufferPointer ( { strtod ( $0. baseAddress, nil ) } ) )
423+ return . doubleValue( tempBuffer. withUnsafeBufferPointer ( { strtod ( $0. baseAddress! , nil ) } ) )
424424 }
425425 outerLoop: while let c = base. peek ( ) {
426426 switch c {
@@ -451,7 +451,7 @@ public struct JSONParserIterator<Iter: IteratorProtocol>: JSONEventIterator wher
451451 }
452452 #endif
453453 tempBuffer. append ( 0 )
454- return . doubleValue( tempBuffer. withUnsafeBufferPointer ( { strtod ( $0. baseAddress, nil ) } ) )
454+ return . doubleValue( tempBuffer. withUnsafeBufferPointer ( { strtod ( $0. baseAddress! , nil ) } ) )
455455 case " e " , " E " :
456456 bump ( )
457457 tempBuffer. append ( Int8 ( truncatingBitPattern: c. value) )
@@ -466,7 +466,7 @@ public struct JSONParserIterator<Iter: IteratorProtocol>: JSONEventIterator wher
466466 tempBuffer. append ( 0 )
467467 let num = tempBuffer. withUnsafeBufferPointer ( { ptr -> Int64 ? in
468468 errno = 0
469- let n = strtoll ( ptr. baseAddress, nil , 10 )
469+ let n = strtoll ( ptr. baseAddress! , nil , 10 )
470470 if n == 0 && errno != 0 {
471471 return nil
472472 } else {
@@ -483,7 +483,7 @@ public struct JSONParserIterator<Iter: IteratorProtocol>: JSONEventIterator wher
483483 return try . decimalValue( tempBuffer. withUnsafeBufferPointer ( parseDecimal ( from: ) ) )
484484 }
485485 #endif
486- return . doubleValue ( tempBuffer. withUnsafeBufferPointer ( { strtod ( $0. baseAddress, nil ) } ) )
486+ return . doubleValue ( tempBuffer. withUnsafeBufferPointer ( { strtod ( $0. baseAddress! , nil ) } ) )
487487 case " t " :
488488 let line = self . line, column = self . column
489489 guard case " r " ? = bump ( ) , case " u " ? = bump ( ) , case " e " ? = bump ( ) else {
0 commit comments