Skip to content

Commit

Permalink
Specifically use Int64 instead of Int to fix crash on 32-bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
joluet committed Aug 31, 2023
1 parent 161b0c6 commit 5724daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 @@ -124,7 +124,7 @@ extension VectorTile {
return UInt64(value.uintValue)
}
else if value.hasSintValue {
return Int(value.sintValue)
return Int64(value.sintValue)
}
else {
return ""
Expand Down

0 comments on commit 5724daa

Please sign in to comment.