Changeset 128 for trunk/src


Ignore:
Timestamp:
06/18/13 00:59:02 (12 years ago)
Author:
epyon
Message:
  • bad cast in image.cc fixed
  • bug in c_file_system fixed
Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/image.cc

    r121 r128  
    1212        : m_size( size ), m_depth( depth ), m_data( nullptr )
    1313{
    14         m_data = new uint8[ static_cast<uint16>( m_size.x * m_size.y ) * m_depth ];
     14        m_data = new uint8[ static_cast<uint32>( m_size.x * m_size.y ) * m_depth ];
    1515}
    1616
  • trunk/src/io/c_file_system.cc

    r126 r128  
    3232stream* c_file_system::open( const char* fpath, const char* fmode /*= "rb" */ )
    3333{
    34         NV_ASSERT( fpath != nullptr && fpath != "" && fmode != nullptr, "Bad parameters passed to open" );
     34        NV_ASSERT( fpath != nullptr && fmode != nullptr, "Bad parameters passed to open" );
    3535        FILE* file = ::fopen( fpath, fmode );
    3636        if ( !file )
Note: See TracChangeset for help on using the changeset viewer.