Changeset 887796b in rtems for cpukit/libblock


Ignore:
Timestamp:
11/02/09 12:18:19 (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
f62c4673
Parents:
b5c8e27
Message:

2009-11-02 Ralf Corsépius <ralf.corsepius@…>

  • libblock/src/bdbuf.c: Cast bdbuf->state to int32_t before shifting << 16 (Can not shift an enum by << 16 on 16bit).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    rb5c8e27 r887796b  
    10891089      case RTEMS_BDBUF_STATE_READ_AHEAD:
    10901090        if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0)
    1091           rtems_fatal_error_occurred ((bd->state << 16) |
     1091          rtems_fatal_error_occurred ((((uint32_t) bd->state) << 16) |
    10921092                                      RTEMS_BLKDEV_FATAL_BDBUF_CONSISTENCY_1);
    10931093        break;
    10941094      default:
    1095         rtems_fatal_error_occurred ((bd->state << 16) |
     1095        rtems_fatal_error_occurred ((((uint32_t) bd->state) << 16) |
    10961096                                    RTEMS_BLKDEV_FATAL_BDBUF_CONSISTENCY_8);
    10971097    }
Note: See TracChangeset for help on using the changeset viewer.