Changeset 1004b37 in mainline for kernel/genarch/src/fb/fb.c


Ignore:
Timestamp:
2007-01-29T19:30:22Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
831a04d0
Parents:
623b49f1
Message:

signed/unsigned comparison, explicit typecast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/fb/fb.c

    r623b49f1 r1004b37  
    124124static void rgb_byte888(void *dst, int rgb)
    125125{
    126         uint8_t *scr = dst;
     126        uint8_t *scr = (uint8_t *) dst;
    127127#if defined(FB_INVERT_ENDIAN)
    128128        scr[0] = RED(rgb, 8);
     
    138138static int byte888_rgb(void *src)
    139139{
    140         uint8_t *scr = src;
     140        uint8_t *scr = (uint8_t *) src;
    141141#if defined(FB_INVERT_ENDIAN)
    142142        return scr[0] << 16 | scr[1] << 8 | scr[2];
     
    266266                         * specified by the resolution.
    267267                         */
    268                         int i;
     268                        unsigned int i;
    269269
    270270                        for (i = 0; i < first; i++)
     
    291291                         * See the comment in the dbbuffer case.
    292292                         */
    293                         int i;
     293                        unsigned int i;
    294294
    295295                        /* Move all rows one row up */
Note: See TracChangeset for help on using the changeset viewer.