Re: [Linux-ia64] ia-64 cast warning??

From: Randolph Chung <randolph_at_tausq.org>
Date: 2001-11-15 05:26:44
> int main(){
>   unsigned int volatile* mask;
>   unsigned short circbuff[CBUFSIZE];
>   unsigned int CBptr;
>   unsigned int current;
> .....
>   CHECK_CIRC_ALIGNMENT(current);
> .....
> }
> 
> I always get the warning : 
> warning : cast from pointer to integer of different size  on the line
> CHECK_CIRC_ALIGNMENT(current);

circbuff is an unsigned short *, you are casting it to an unsigned int.
Cast it to unsigned long or uintptr_t instead.

randolph
-- 
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^
Received on Wed Nov 14 10:27:16 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:05 EST