diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-02 12:18:19 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-02 12:18:19 +0000 |
commit | 887796ba477f8fd064114f6cc077413b9396d623 (patch) | |
tree | 4a523ba16063c978a9bfecdfd1c510b5f40a5a01 /cpukit/libblock | |
parent | 2009-11-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-887796ba477f8fd064114f6cc077413b9396d623.tar.bz2 |
2009-11-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/bdbuf.c: Cast bdbuf->state to int32_t
before shifting << 16 (Can not shift an enum by << 16 on 16bit).
Diffstat (limited to 'cpukit/libblock')
-rw-r--r-- | cpukit/libblock/src/bdbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index 600ae1b26b..95e89d3e1f 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -1088,11 +1088,11 @@ rtems_bdbuf_group_realloc (rtems_bdbuf_group* group, size_t new_bds_per_group) case RTEMS_BDBUF_STATE_CACHED: case RTEMS_BDBUF_STATE_READ_AHEAD: if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0) - rtems_fatal_error_occurred ((bd->state << 16) | + rtems_fatal_error_occurred ((((uint32_t) bd->state) << 16) | RTEMS_BLKDEV_FATAL_BDBUF_CONSISTENCY_1); break; default: - rtems_fatal_error_occurred ((bd->state << 16) | + rtems_fatal_error_occurred ((((uint32_t) bd->state) << 16) | RTEMS_BLKDEV_FATAL_BDBUF_CONSISTENCY_8); } |