Skip to content

Commit 9e54c28

Browse files
committed
DEBUG CI: Fiber::Stack.new raises a math overflow...
1 parent 2e66946 commit 9e54c28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fiber/stack.cr

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class Fiber
77
getter? reusable : Bool
88

99
def initialize(@pointer : Void*, @bottom : Void*, *, @reusable = false)
10-
@size = (@bottom - @pointer).to_i32
10+
{% if flag?(:unix) %}
11+
LibC.dprintf 2, "DEBUG: Fiber::Stack.new(%p, %p, %s)\n", @pointer, @bottom, @reusable ? "true" : "false"
12+
{% end %}
13+
@size = (@bottom - @pointer).to_i32!
1114
end
1215

1316
def initialize(@pointer : Void*, @size : Int32, *, @reusable = false)

0 commit comments

Comments
 (0)