summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/rfs/rtems-rfs-format.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2010-04-12 05:29:25 +0000
committerChris Johns <chrisj@rtems.org>2010-04-12 05:29:25 +0000
commit1d539c05010b34013e49c5a8221702ebadae4406 (patch)
tree3fc3d5bdd8435cd565c336ba0aab2525e518af1d /cpukit/libfs/src/rfs/rtems-rfs-format.c
parent2010-04-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-1d539c05010b34013e49c5a8221702ebadae4406.tar.bz2
2010-04-12 Chris Johns <chrisj@rtems.org>
libfs/src/rfs/rtems-rfs-buffer-bdbuf.c, libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-data.h, libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-inode.h, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h, libfs/src/rfs/rtems-rfs-shell.c: Fix for PR1502. Clean up problems on 16bit targets.
Diffstat (limited to 'cpukit/libfs/src/rfs/rtems-rfs-format.c')
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-format.c b/cpukit/libfs/src/rfs/rtems-rfs-format.c
index 6820de4ec9..16f9b4de14 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-format.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-format.c
@@ -33,7 +33,7 @@
/**
* Return the number of gigabytes.
*/
-#define GIGS(_g) ((_g) * 1024 * 1024)
+#define GIGS(_g) (((uint64_t)(_g)) * 1024 * 1024)
/**
* Return the number of bits that fit in the block size.