From 1d539c05010b34013e49c5a8221702ebadae4406 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 12 Apr 2010 05:29:25 +0000 Subject: 2010-04-12 Chris Johns 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. --- cpukit/libfs/src/rfs/rtems-rfs-inode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libfs/src/rfs/rtems-rfs-inode.h') 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); } -- cgit v1.2.3