lkml.org 
[lkml]   [2006]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Ext2-devel] [UPDATE][14/21]e2fsprogs modify variables to exceed 2G
On Apr 26, 2006  10:49 +0900, sho@tnes.nec.co.jp wrote:
> + blk64_t end, save_blocks_count, i;
> + (EXT2_BLOCKS_PER_GROUP(fs->super) * (__u64)fs->group_desc_count) - 1;
> + blk64_t start_blk, last_blk;
> + last_blk = (__u64) group_blk + fs->super->s_blocks_per_group - 1;
>
> + start_blk = (__u64) group_blk + fs->inode_blocks_per_group;

If a variable is declared as blk64_t it should be cast to (blk64_t) instead
of (__u64) I think.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-26 07:14    [W:0.046 / U:22.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site