Skip to content

Commit

Permalink
display long value
Browse files Browse the repository at this point in the history
  • Loading branch information
Decybel07 authored May 23, 2017
1 parent 9526fc1 commit 1f618c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Extensions/Int+l10n.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension Int {
- returns: A localized self description value.
*/
public func l10n() -> String {
return L10n.shared.string(format: "%d", self)
return L10n.shared.string(format: "%ld", self)
}

/**
Expand All @@ -23,6 +23,6 @@ extension Int {
- returns: A localized self description value with leading zeros.
*/
public func l10n(minIntegerDigits: Int) -> String {
return L10n.shared.string(format: "%0\(minIntegerDigits)d", self)
return L10n.shared.string(format: "%0\(minIntegerDigits)ld", self)
}
}

0 comments on commit 1f618c8

Please sign in to comment.