about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-22 22:32:56 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-22 22:32:56 +0100
commit1feefd7580233b365a7437a6f24f01c74c2b2230 (patch)
treea48058b84591b1fff7c0e44a478cf6833a1c1acf /src/types
parent9d16f9fc4d39aae0968b6fa1702fae91b616d077 (diff)
downloadchawan-1feefd7580233b365a7437a6f24f01c74c2b2230.tar.gz
Strict def fixes
Diffstat (limited to 'src/types')
-rw-r--r--src/types/path.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/path.nim b/src/types/path.nim
index 8f21a891..4bf14adc 100644
--- a/src/types/path.nim
+++ b/src/types/path.nim
@@ -251,7 +251,7 @@ func `[]`*(pl: PathLines; i: BackwardsIndex): LineSegment = pl.lines[i]
 func len*(pl: PathLines): int = pl.lines.len
 
 iterator quadraticLines(a, b, c: Vector2D): Line {.inline.} =
-  var points: Deque[tuple[a, b, c: Vector2D]]
+  var points = initDeque[tuple[a, b, c: Vector2D]]()
   let tup = (a, b, c)
   points.addFirst(tup)
   while points.len > 2:
@@ -266,7 +266,7 @@ iterator quadraticLines(a, b, c: Vector2D): Line {.inline.} =
       points.addFirst((s, b, mid2))
 
 iterator bezierLines(p0, p1, c0, c1: Vector2D): Line {.inline.} =
-  var points: Deque[tuple[p0, p1, c0, c1: Vector2D]]
+  var points = initDeque[tuple[p0, p1, c0, c1: Vector2D]]()
   let tup = (p0, p1, c0, c1)
   points.addLast(tup)
   while points.len > 0: