Skip to content

Commit

Permalink
Merge pull request #43 from erichoracek/swift-3-1-fixes
Browse files Browse the repository at this point in the history
Fix warning introduced in Swift 3.1/Xcode 8.3
  • Loading branch information
1ec5 committed Mar 12, 2017
2 parents 55f3cce + 0052f8f commit 31cc638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Polyline/Polyline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public func decodePolyline(_ encodedPolyline: String, precision: Double = 1e5) -

let data = encodedPolyline.data(using: String.Encoding.utf8)!

let byteArray = unsafeBitCast((data as NSData).bytes, to: UnsafePointer<Int8>.self)
let byteArray = (data as NSData).bytes.assumingMemoryBound(to: Int8.self)
let length = Int(data.count)
var position = Int(0)

Expand Down

0 comments on commit 31cc638

Please sign in to comment.