Changeset 1055


Ignore:
Timestamp:
Jul 8, 2008, 6:05:58 PM (17 years ago)
Author:
Steven Levine
Message:

Avoid WARNALL warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dirsize.c

    r907 r1055  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004 Steven H.Levine
     9  Copyright (c) 2004, 2008 Steven H.Levine
    1010
    1111  11 Jun 02 SHL Baseline
    1212  06 Jan 04 SHL Total drives >4GB better
     13  08 Jul 08 SHL Avoid WARNALL warning
    1314
    1415***********************************************************************/
     
    116117        if (!DosQueryFSInfo(toupper(*curdir) - '@',
    117118                            FSIL_ALLOC, &fsa, sizeof(FSALLOCATE))) {
    118           percentfree = fsa.cUnit ? (fsa.cUnitAvail * 100) / fsa.cUnit : 0;
     119          percentfree = fsa.cUnit ? (USHORT)((fsa.cUnitAvail * 100) / fsa.cUnit) : 0;   // 27 May 08 SHL
    119120          if (!percentfree && fsa.cUnitAvail)
    120121            percentfree = 1;
Note: See TracChangeset for help on using the changeset viewer.