Subject: Re: CVS commit: basesrc
To: Todd Vierling <tv@wasabisystems.com>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: source-changes
Date: 10/09/2000 16:38:45
On Mon, 9 Oct 2000, Todd Vierling wrote:
> : We also see a lot of this in pkgsrc
> : (ftp://jumbo.hamachi.org/pub/NetBSD/pkgstat/last/broken.html), and it
> : makes me wonder a bit why this only bites on 64bit archs...
>
> It's because memcpy, memcmp, etc., use size_t, which is unsigned long on
> alpha, 64 bits, and a non-prototyped function will use [unsigned] int, 32
> bits.
>
> It may work errattically on alpha by ignoring the warning, but that's only
> by virtue of the way arguments are laid out in memory thanks to little
> endianness.
Yah, and on sparc64 it'll blow chunks, I guess. :-)
- Hubert
--
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>