summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/rfs/rtems-rfs-inode.h
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-inode.h
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-inode.h')
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-inode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-inode.h b/cpukit/libfs/src/rfs/rtems-rfs-inode.h
index d5decd922a..663bed5ef7 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-inode.h
+++ b/cpukit/libfs/src/rfs/rtems-rfs-inode.h
@@ -339,7 +339,7 @@ static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
- rtems_rfs_write_u32 (&handle->node->owner, (gid << 16) | uid);
+ rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
}