diff --git a/src/crystal/system/win32/file_descriptor.cr b/src/crystal/system/win32/file_descriptor.cr index 63aee6e1ecf7..b6cc06d62a1c 100644 --- a/src/crystal/system/win32/file_descriptor.cr +++ b/src/crystal/system/win32/file_descriptor.cr @@ -259,8 +259,8 @@ module Crystal::System::FileDescriptor handle = windows_handle(fd) overlapped = LibC::OVERLAPPED.new - overlapped.union.offset.offset = LibC::DWORD.new(offset) - overlapped.union.offset.offsetHigh = LibC::DWORD.new(offset >> 32) + overlapped.union.offset.offset = LibC::DWORD.new!(offset) + overlapped.union.offset.offsetHigh = LibC::DWORD.new!(offset >> 32) if LibC.ReadFile(handle, buffer, buffer.size, out bytes_read, pointerof(overlapped)) == 0 error = WinError.value return 0_i64 if error == WinError::ERROR_HANDLE_EOF