Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2011 12:18:01 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221809 - head/sys/dev/sound/pcm
Message-ID:  <201105121218.p4CCI11Y036531@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105121218.p4CCI11Y036531>