aboutsummaryrefslogtreecommitdiff
path: root/src/stackStack.nim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stackStack.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stackStack.nim b/src/stackStack.nim
index 1bc89c0..d55d5d9 100644
--- a/src/stackStack.nim
+++ b/src/stackStack.nim
@@ -6,7 +6,7 @@ type
head: ref Stack
func NewStackStack*(): ref StackStack =
- result = new(StackStack)
+ new(result)
result.head = NewStack()
result.height = 1