about summary refs log tree commit diff stats
path: root/src/layout/layoutunit.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/layoutunit.nim')
-rw-r--r--src/layout/layoutunit.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/layout/layoutunit.nim b/src/layout/layoutunit.nim
index 777e58d7..8ec3e4a3 100644
--- a/src/layout/layoutunit.nim
+++ b/src/layout/layoutunit.nim
@@ -29,13 +29,10 @@ func toInt*(a: LayoutUnit): int =
 converter toLayoutUnit*(a: int32): LayoutUnit =
   return LayoutUnit(a shl 6)
 
-converter toLayoutUnit*(a: int64): LayoutUnit =
-  return toLayoutUnit(cast[int32](a))
-
 converter toLayoutUnit*(a: int): LayoutUnit =
   return toLayoutUnit(cast[int32](a))
 
-converter toLayoutUnit*(a: float64): LayoutUnit =
+func toLayoutUnit*(a: float64): LayoutUnit =
   if unlikely(a == Inf):
     return LayoutUnit(high(int32))
   elif unlikely(a == -Inf):