Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Aug 26, 2024
1 parent cbcb4fd commit 0f7c02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crystal/system/win32/iocp.cr
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ module Crystal::IOCP
OverlappedOperation.run(handle) do |operation|
overlapped = operation.to_unsafe
if seekable
overlapped.value.union.offset.offset = LibC::DWORD.new(original_offset)
overlapped.value.union.offset.offsetHigh = LibC::DWORD.new(original_offset >> 32)
overlapped.value.union.offset.offset = LibC::DWORD.new!(original_offset)
overlapped.value.union.offset.offsetHigh = LibC::DWORD.new!(original_offset >> 32)
end
result, value = yield operation

Expand Down

0 comments on commit 0f7c02c

Please sign in to comment.