> On Mar 17, 2016, at 10:52 PM, Jeffrey Walton <[email protected]> wrote:
>
> This is bad news... A 32-bit pointer's sign extension is
> implementation defined, which means it may as well be undefined
> behavior...
>
> GCC sign extends. I think you can get around it with an intermediate
> cast to uintptr_t:
>
> cb->aio_buf = (uint64_t)(uintptr_t)buf;
The kernel sources seem to use a cast to (unsigned long) in the system
call definitions... Someone else will have to figure out how this is
supposed to work...
--
Viktor.
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev