Changeset 1055

Show
Ignore:
Timestamp:
07/08/08 18:05:58 (3 months ago)
Author:
stevenhl
Message:

Avoid WARNALL warning

Files:
1 modified

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;