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).
This commit is contained in:
Ralf Corsepius
2009-11-02 12:18:19 +00:00
parent b5c8e278c6
commit 887796ba47
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
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).
2009-11-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_conv.c,
+2 -2
View File
@@ -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);
}