Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2003 20:28:09 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc_r/uthread uthread_sig.c
Message-ID:  <200303050428.h254S9SS000308@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcel      2003/03/04 20:28:09 PST

  FreeBSD src repository

  Modified files:
    lib/libc_r/uthread   uthread_sig.c 
  Log:
  Don't cast an int to a pointer type without (possibly) widening the
  integral type to the size of a pointer type when it's known that the
  cast is valid. On ia64 such casts are generally bad news and has led
  us (=peter :-) to make such casts fatal. By casting to intptr_t
  before casting to a pointer type, this now compiles cleanly in LP64
  architectures. Note that the final cast has been changed to void*
  (instead of siginfo_t*) to make it explicit that we're not trying to
  pass a siginfo_t pointer but rather trying to pass an int when the
  prototype says it should be a pointer.
  
  Revision  Changes    Path
  1.45      +1 -1      src/lib/libc_r/uthread/uthread_sig.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303050428.h254S9SS000308>