Ignore:
Timestamp:
Jun 30, 2020, 1:21:39 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
398e8e9, 9f7fff4
Parents:
bdce852
Message:

Fixed errors and warning with x86 build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    rbdce852 r7812a7b5  
    505505                        /* paranoid */ verify(&cqe);
    506506
    507                         struct io_user_data * data = (struct io_user_data *)cqe.user_data;
     507                        struct io_user_data * data = (struct io_user_data *)(uintptr_t)cqe.user_data;
    508508                        __cfadbg_print_safe( io, "Kernel I/O : Performed reading io cqe %p, result %d for %p\n", data, cqe.res, data->thrd );
    509509
     
    831831                (this){ opcode, fd };
    832832                this.off = off;
    833                 this.addr = (uint64_t)addr;
     833                this.addr = (uint64_t)(uintptr_t)addr;
    834834                this.len = len;
    835835        }
     
    845845                struct io_uring_sqe * sqe; \
    846846                uint32_t idx; \
    847                 [sqe, idx] = __submit_alloc( ring, (uint64_t)&data );
     847                [sqe, idx] = __submit_alloc( ring, (uint64_t)(uintptr_t)&data );
    848848
    849849        #define __submit_wait \
    850850                /*__cfaabi_bits_print_safe( STDERR_FILENO, "Preparing user data %p for %p\n", &data, data.thrd );*/ \
    851                 verify( sqe->user_data == (uint64_t)&data ); \
     851                verify( sqe->user_data == (uint64_t)(uintptr_t)&data ); \
    852852                __submit( ring, idx ); \
    853853                park( __cfaabi_dbg_ctx ); \
Note: See TracChangeset for help on using the changeset viewer.