[ruby-cvs:69402] shyouhei:r62221 (trunk): assigning void* to a function pointer is a POSIXism

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Mon Feb 5 13:17:44 JST 2018


shyouhei	2018-02-05 13:17:44 +0900 (Mon, 05 Feb 2018)

  New Revision: 62221

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62221

  Log:
    assigning void* to a function pointer is a POSIXism
    
    No implicit cast is defined between these types.  Should be explicit.
    Also, NULL is defined to be ((void*)0) so not usable as a function
    pointer value.

  Modified files:
    trunk/mjit.c
    trunk/thread_pthread.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list