[Ocfs2-tools-commits] zab commits r492 - trunk/libocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Dec 14 19:14:32 CST 2004
Author: zab
Date: 2004-12-14 19:14:30 -0600 (Tue, 14 Dec 2004)
New Revision: 492
Modified:
trunk/libocfs2/fileio.c
Log:
o silence ptr->smaller int warning
Modified: trunk/libocfs2/fileio.c
===================================================================
--- trunk/libocfs2/fileio.c 2004-12-15 00:27:15 UTC (rev 491)
+++ trunk/libocfs2/fileio.c 2004-12-15 01:14:30 UTC (rev 492)
@@ -135,7 +135,8 @@
/* o_direct requires aligned io */
tmp = fs->fs_blocksize - 1;
- if ((count & tmp) || (offset & (uint64_t)tmp) || ((uint32_t)ptr & tmp))
+ if ((count & tmp) || (offset & (uint64_t)tmp) ||
+ ((unsigned long)ptr & tmp))
return OCFS2_ET_INVALID_ARGUMENT;
wanted_blocks = count >> OCFS2_RAW_SB(fs->fs_super)->s_blocksize_bits;
More information about the Ocfs2-tools-commits
mailing list