Skip to content

Commit

Permalink
Fix deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Mar 7, 2023
1 parent b59f034 commit 2cbc272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions source/eventcore/drivers/posix/io_uring/files.d
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ final class UringDriverFiles : EventDriverFiles
private void handleOpen(FD fd, ref const(CompletionEntry) e, UserCallback userCb)
nothrow
in { assert (fd == FD.init); }
body
{
do {
FileOpenCallback cb = cast(FileOpenCallback) userCb;
if (e.res == -1)
{
Expand Down
6 changes: 2 additions & 4 deletions source/eventcore/drivers/posix/io_uring/io_uring.d
Original file line number Diff line number Diff line change
Expand Up @@ -349,16 +349,14 @@ final class UringEventLoop

void splitKey(ulong key, out OpIdx op, out EventType type) @nogc nothrow
out { assert(op != OpIdx.init); }
body
{
do {
op = cast(int) (key >> 32);
type = cast(EventType) ((key << 32) >>> 32);
}

ulong combineKey(OpIdx op, EventType type) @nogc nothrow
in { assert(op != OpIdx.init); }
body
{
do {
return cast(ulong)(op) << 32 | cast(uint) type;
}

Expand Down

0 comments on commit 2cbc272

Please sign in to comment.