Changeset 1533 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
May 30, 2010, 7:34:46 PM (15 years ago)
Author:
Gregg Young
Message:

Fixed possible loss of precision compiler warnings by casting the variables in question.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1506 r1533  
    19671967      *szDrv = 0;
    19681968      x = id - IDM_DRIVEA;
    1969       *szDrv = x + 'A';
     1969      *szDrv = (CHAR) x + 'A';
    19701970      strcpy(szDrv + 1, ":");
    19711971      if (x > 1) {
     
    36653665              WinSetWindowUShort(hwndChild,
    36663666                                 QWS_XRESTORE,
    3667                                  (USHORT) (ulWidth * ulCurCol) + Rectl.xLeft);
     3667                                 (USHORT) ((USHORT) ulWidth * (USHORT) ulCurCol)
     3668                                 + (USHORT) Rectl.xLeft);
    36683669              WinSetWindowUShort(hwndChild,
    36693670                                 QWS_YRESTORE,
     
    37543755          WinSetWindowPos(hwndChild, HWND_TOP, 0, 0, 0, 0,
    37553756                          SWP_SIZE | SWP_MOVE | SWP_FOCUSDEACTIVATE);
    3756           WinSetWindowUShort(hwndChild, QWS_XRESTORE, ux);
    3757           WinSetWindowUShort(hwndChild, QWS_YRESTORE, uy);
    3758           WinSetWindowUShort(hwndChild, QWS_CXRESTORE, ucx);
    3759           WinSetWindowUShort(hwndChild, QWS_CYRESTORE, ucy);
     3757          WinSetWindowUShort(hwndChild, QWS_XRESTORE, (USHORT) ux);
     3758          WinSetWindowUShort(hwndChild, QWS_YRESTORE, (USHORT) uy);
     3759          WinSetWindowUShort(hwndChild, QWS_CXRESTORE, (USHORT) ucx);
     3760          WinSetWindowUShort(hwndChild, QWS_CYRESTORE, (USHORT) ucy);
    37603761        }
    37613762        else {
     
    37633764          WinSetWindowPos(hwndChild, HWND_TOP, swp.x, swp.y, swp.cx, swp.cy,
    37643765                          SWP_MOVE | SWP_SIZE | SWP_SHOW);
    3765           WinSetWindowUShort(hwndChild, QWS_XRESTORE, ux);
    3766           WinSetWindowUShort(hwndChild, QWS_YRESTORE, uy);
    3767           WinSetWindowUShort(hwndChild, QWS_CXRESTORE, ucx);
    3768           WinSetWindowUShort(hwndChild, QWS_CYRESTORE, ucy);
     3766          WinSetWindowUShort(hwndChild, QWS_XRESTORE, (USHORT) ux);
     3767          WinSetWindowUShort(hwndChild, QWS_YRESTORE, (USHORT) uy);
     3768          WinSetWindowUShort(hwndChild, QWS_CXRESTORE, (USHORT) ucx);
     3769          WinSetWindowUShort(hwndChild, QWS_CYRESTORE, (USHORT) ucy);
    37693770        }
    37703771      }
Note: See TracChangeset for help on using the changeset viewer.