Skip to content

Commit

Permalink
Merge pull request #13 from joluet/fix-watchos-crash-uint64
Browse files Browse the repository at this point in the history
Specifically use UInt64 instead of UInt to prevent crash on 32-bit platforms
  • Loading branch information
trasch authored Aug 31, 2023
2 parents a84e2c7 + 5724daa commit 8955886
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/MVTTools/VectorTileDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ extension VectorTile {
return string
}
else if value.hasIntValue {
return Int(value.intValue)
return Int64(value.intValue)
}
else if value.hasBoolValue {
return value.boolValue
Expand All @@ -121,10 +121,10 @@ extension VectorTile {
return Double(value.floatValue)
}
else if value.hasUintValue {
return UInt(value.uintValue)
return UInt64(value.uintValue)
}
else if value.hasSintValue {
return Int(value.sintValue)
return Int64(value.sintValue)
}
else {
return ""
Expand Down

0 comments on commit 8955886

Please sign in to comment.