Skip to content
Snippets Groups Projects
Commit 122d2974 authored by Florian Fischer's avatar Florian Fischer
Browse files

[GlobalIoContext] use correct types

Thanks llvm 12 :)
parent 4b7f7802
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ auto GlobalIoContext::globalCompleterFunc(void* arg) -> void* {
case PointerTags::Future: {
auto* future = tptr.getPtr<Future>();
uint32_t res = cqe->res;
int32_t res = cqe->res;
future->recordCompletion(globalIoContext->stats, res);
future->completeFromAnywhere(res);
......@@ -152,7 +152,7 @@ void GlobalIoContext::startGlobalCompleter() {
void GlobalIoContext::initiateTermination() {
uint64_t write_buf = 1;
int bytes_written = write(notificationEventFd, &write_buf, sizeof(write_buf));
ssize_t bytes_written = write(notificationEventFd, &write_buf, sizeof(write_buf));
if (bytes_written != sizeof(write_buf)) {
DIE_MSG_ERRNO("Writing to globalIo termination eventfd failed");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment