Changeset 0471786 in mainline


Ignore:
Timestamp:
2009-06-16T20:22:58Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
62140db
Parents:
08c9f7d
Message:

Fix signedness issues and warnings in fb.

Location:
uspace/srv/fb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/ega.c

    r08c9f7d r0471786  
    8888static void clrscr(void)
    8989{
    90         int i;
     90        unsigned i;
    9191       
    9292        for (i = 0; i < scr_width * scr_height; i++) {
     
    130130static void scroll(int rows)
    131131{
    132         int i;
     132        unsigned i;
     133
    133134        if (rows > 0) {
    134135                memmove(scr_addr, ((char *) scr_addr) + rows * scr_width * 2,
     
    346347                case FB_SCROLL:
    347348                        i = IPC_GET_ARG1(call);
    348                         if (i > scr_height || i < -((int) scr_height)) {
     349                        if (i > (int) scr_height || i < -((int) scr_height)) {
    349350                                retval = EINVAL;
    350351                                break;
  • uspace/srv/fb/fb.c

    r08c9f7d r0471786  
    451451                x = vport->x;
    452452                for (col = 0; col < vport->cols; col++) {
    453                         if ((row + lines >= 0) && (row + lines < vport->rows)) {
     453                        if (((int) row + lines >= 0) &&
     454                            ((int) row + lines < (int) vport->rows)) {
    454455                                xbp = &vport->backbuf[BB_POS(vport, col, row + lines)];
    455456                                bbp = &vport->backbuf[BB_POS(vport, col, row)];
Note: See TracChangeset for help on using the changeset viewer.