Subject: Fixing pointer-to-int casts
To: None <port-alpha@NetBSD.ORG>
From: Johnny C. Lam <>
List: port-alpha
Date: 05/16/1998 01:09:28
I've been making some of the packages in the pkgsrc tree and the xsrc
tree, and I get quite a few of the the following warnings:

	warning: cast from pointer to integer of different size
	warning: cast to pointer from integer of different size

What is the best way to fix up the code?  Is there a way to avoid
sprinkling #ifdef's into the code to differentiate between 32-bit and
64-bit platforms, like replacing ints with longs?

How was this fixed in the MI NetBSD source when the Alpha port got

   Johnny C. Lam
   Department of Statistics   
   Carnegie Mellon University