diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-11 15:31:01 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-11 15:31:01 +0000 |
commit | 6a592af80fef854d588517e348ab76a1b0b79cd4 (patch) | |
tree | 4f0040dc10248bf49fc846bcc50679b4c5e65ff4 /sys/dev | |
parent | ff35a38e498354e38e28bc246a1341a8fe2fbf91 (diff) | |
download | FreeBSD-src-6a592af80fef854d588517e348ab76a1b0b79cd4.zip FreeBSD-src-6a592af80fef854d588517e348ab76a1b0b79cd4.tar.gz |
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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sound/pcm/feeder_fmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/feeder_fmt.c b/sys/dev/sound/pcm/feeder_fmt.c index 6c8c92a..059d5b7 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; |