This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED PATCH] Bug fixes: hppa: Implement socket_type.h / hppa:Cleanup cast warnings.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Carlos O'Donell <carlos at systemhalted dot org>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Thu, 29 Nov 2012 14:51:38 -0800 (PST)
- Subject: Re: [COMMITTED PATCH] Bug fixes: hppa: Implement socket_type.h / hppa:Cleanup cast warnings.
- References: <50B7E575.3030503@systemhalted.org>
> + * sysdeps/unix/sysv/linux/hppa/bits/socket.h: Delete file.
> + * ports/sysdeps/unix/sysv/linux/hppa/bits/socket_type.h: New file.
s,ports/,,
> @@ -42,7 +42,7 @@ feholdexcept (fenv_t *envp)
>
> /* Load the new environment. Note: fr0 must load last to enable T-bit
> Thus we start bufptr at the end and work backwards */
> - bufptr = (unsigned int)(clear.buf) + sizeof(unsigned int)*4;
> + bufptr = (unsigned long long *)((unsigned int)(clear.buf) + sizeof(unsigned int)*4);
libc code eschews implicit int (but uint64_t might be the easier thing to
type anyway), and also uses more spaces than this.