Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/resize_ffs fix cast in local macro
details: https://anonhg.NetBSD.org/src/rev/702d626f22f6
branches: trunk
changeset: 778920:702d626f22f6
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 20 13:20:39 2012 +0000
description:
fix cast in local macro
diffstat:
sbin/resize_ffs/resize_ffs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ff388a678097 -r 702d626f22f6 sbin/resize_ffs/resize_ffs.c
--- a/sbin/resize_ffs/resize_ffs.c Fri Apr 20 12:11:29 2012 +0000
+++ b/sbin/resize_ffs/resize_ffs.c Fri Apr 20 13:20:39 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: resize_ffs.c,v 1.32 2011/08/27 16:34:57 christos Exp $ */
+/* $NetBSD: resize_ffs.c,v 1.33 2012/04/20 13:20:39 christos Exp $ */
/* From sources sent on February 17, 2003 */
/*-
* As its sole author, I explicitly place this code in the public
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: resize_ffs.c,v 1.32 2011/08/27 16:34:57 christos Exp $");
+__RCSID("$NetBSD: resize_ffs.c,v 1.33 2012/04/20 13:20:39 christos Exp $");
#include <sys/disk.h>
#include <sys/disklabel.h>
@@ -138,7 +138,7 @@
/* resize_ffs works directly on dinodes, adapt blksize() */
#define dblksize(fs, dip, lbn, filesize) \
- (((lbn) >= NDADDR || (filesize) >= lblktosize(fs, (lbn) + 1)) \
+ (((lbn) >= NDADDR || (uint64_t)(filesize) >= lblktosize(fs, (lbn) + 1)) \
? (fs)->fs_bsize \
: (fragroundup(fs, blkoff(fs, (filesize)))))
Home |
Main Index |
Thread Index |
Old Index