socsvn commit: r224119 - soc2011/gk/ino64-head/sbin/growfs

gk at FreeBSD.org gk at FreeBSD.org
Mon Jul 11 07:11:45 UTC 2011


Author: gk
Date: Mon Jul 11 07:11:42 2011
New Revision: 224119
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224119

Log:
  Fix growfs on 32 bit archs

Modified:
  soc2011/gk/ino64-head/sbin/growfs/growfs.c

Modified: soc2011/gk/ino64-head/sbin/growfs/growfs.c
==============================================================================
--- soc2011/gk/ino64-head/sbin/growfs/growfs.c	Mon Jul 11 07:11:33 2011	(r224118)
+++ soc2011/gk/ino64-head/sbin/growfs/growfs.c	Mon Jul 11 07:11:42 2011	(r224119)
@@ -1878,9 +1878,10 @@
 	DBG_LEAVE;
 	if (sblock.fs_magic == FS_UFS1_MAGIC)
 		return (union dinode *)((uintptr_t)inobuf +
-		    (inumber % INOPB(&sblock)) * sizeof(struct ufs1_dinode));
+		    (uintptr_t)(inumber % INOPB(&sblock)) *
+		    sizeof(struct ufs1_dinode));
 	return (union dinode *)((uintptr_t)inobuf +
-	    (inumber % INOPB(&sblock)) * sizeof(struct ufs2_dinode));
+	    (uintptr_t)(inumber % INOPB(&sblock)) * sizeof(struct ufs2_dinode));
 }
 
 /* ****************************************************** charsperline ***** */


More information about the svn-soc-all mailing list