svn commit: r221809 - head/sys/dev/sound/pcm

Andriy Gapon avg at FreeBSD.org
Thu May 12 12:18:01 UTC 2011


Author: avg
Date: Thu May 12 12:18:01 2011
New Revision: 221809
URL: http://svn.freebsd.org/changeset/base/221809

Log:
  fix build on 32-bit platforms for r221803
  
  Casting a pointer to a wide integer is probably not that bad, but I am
  still guilty of not testing this.
  
  Pointyhat to:	avg
  MFC after:	1 week
  X-MFC with:	r221803

Modified:
  head/sys/dev/sound/pcm/dsp.c

Modified: head/sys/dev/sound/pcm/dsp.c
==============================================================================
--- head/sys/dev/sound/pcm/dsp.c	Thu May 12 10:56:33 2011	(r221808)
+++ head/sys/dev/sound/pcm/dsp.c	Thu May 12 12:18:01 2011	(r221809)
@@ -2255,7 +2255,7 @@ dsp_mmap_single(struct cdev *i_dev, vm_o
 	if (rdch != NULL)
 		rdch->flags |= CHN_F_MMAP;
 
-	*offset = (vm_ooffset_t)sndbuf_getbufofs(c->bufsoft, *offset);
+	*offset = (uintptr_t)sndbuf_getbufofs(c->bufsoft, *offset);
 	relchns(i_dev, rdch, wrch, SD_F_PRIO_RD | SD_F_PRIO_WR);
 	*object = vm_pager_allocate(OBJT_DEVICE, i_dev,
 	    size, nprot, *offset, curthread->td_ucred);


More information about the svn-src-all mailing list