From 2c823989e18563a8531d207ae16507c34bc2c64c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 11 Apr 2002 15:31:01 +0000 Subject: Fix a warning due to the code assuming sizeof(int) == sizeof(void *) which is not true on the alpha. I think that other parts of this code also make this implicit assumption as well. --- sys/dev/sound/pcm/feeder_fmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/sound/pcm/feeder_fmt.c b/sys/dev/sound/pcm/feeder_fmt.c index 6c8c92af98e9..059d5b7fe587 100644 --- a/sys/dev/sound/pcm/feeder_fmt.c +++ b/sys/dev/sound/pcm/feeder_fmt.c @@ -446,7 +446,7 @@ static int feed_sign(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) { int i = 0, j = FEEDER_FEED(f->source, c, b, count, source); - int ssz = (int)f->data, ofs = ssz - 1; + intptr_t ssz = (intptr_t)f->data, ofs = ssz - 1; while (i < j) { b[i + ofs] ^= 0x80; -- cgit v1.3