fix -Wsign-compare issue on bigendian platforms
This commit is contained in:
parent
17d35bfb59
commit
f974617411
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ext2fs_bswap.c,v 1.14 2008/11/23 10:09:25 mrg Exp $ */
|
||||
/* $NetBSD: ext2fs_bswap.c,v 1.15 2009/04/14 09:30:25 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ext2fs_bswap.c,v 1.14 2008/11/23 10:09:25 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ext2fs_bswap.c,v 1.15 2009/04/14 09:30:25 lukem Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <ufs/ext2fs/ext2fs.h>
|
||||
@ -90,7 +90,7 @@ void e2fs_cg_bswap(struct ext2_gd *old, struct ext2_gd *new, int size)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < (size / sizeof(struct ext2_gd)); i++) {
|
||||
for (i = 0; i < (size / (int)sizeof(struct ext2_gd)); i++) {
|
||||
new[i].ext2bgd_b_bitmap = bswap32(old[i].ext2bgd_b_bitmap);
|
||||
new[i].ext2bgd_i_bitmap = bswap32(old[i].ext2bgd_i_bitmap);
|
||||
new[i].ext2bgd_i_tables = bswap32(old[i].ext2bgd_i_tables);
|
||||
|
Loading…
Reference in New Issue
Block a user