Changeset 1252


Ignore:
Timestamp:
10/1/2009 3:59:28 AM (5 years ago)
Author:
lowjoel
Message:

Arithmetic warning fix (size_t -> int for array indices)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util.FileSystem/FatApi.cpp

    r1242 r1252  
    125125                gcnew String(L"allocated file.")); 
    126126 
    127         size_t clusterSize = ClusterSizeToSize(1); 
     127        int clusterSize = static_cast<int>(ClusterSizeToSize(1)); 
    128128        for (int i = 0; i < buffer->Length; i += clusterSize) 
    129129        { 
     
    356356    void FatDirectory::WriteDirectory() 
    357357    { 
    358         array<Byte>^ buffer = gcnew array<Byte>(DirectorySize * sizeof(::FatDirectoryEntry)); 
     358        array<Byte>^ buffer = gcnew array<Byte>(static_cast<size_t>(DirectorySize) * 
     359            sizeof(::FatDirectoryEntry)); 
    359360        Marshal::Copy(static_cast<IntPtr>(Directory), buffer, 0, buffer->Length); 
    360361        Api->SetFileContents(buffer, Cluster); 
Note: See TracChangeset for help on using the changeset viewer.