diff --git a/src/crystal/system/win32/fiber.cr b/src/crystal/system/win32/fiber.cr index 05fd230a9cac..3aae5bfc5ac9 100644 --- a/src/crystal/system/win32/fiber.cr +++ b/src/crystal/system/win32/fiber.cr @@ -5,7 +5,8 @@ require "c/winnt" module Crystal::System::Fiber # stack size in bytes needed for last-minute error handling in case of a stack # overflow - RESERVED_STACK_SIZE = LibC::DWORD.new(0x10000) + # FIXME: use `LibC::DWORD` explicitly (#15820) + RESERVED_STACK_SIZE = 0x10000_u32 def self.allocate_stack(stack_size, protect) : Void* if stack_top = LibC.VirtualAlloc(nil, stack_size, LibC::MEM_RESERVE, LibC::PAGE_READWRITE)