Changeset 204 for trunk/src/formats


Ignore:
Timestamp:
08/17/13 21:22:56 (12 years ago)
Author:
cahir
Message:

Fix warnings on MacOSX 64-bit with clang 3.3

Location:
trunk/src/formats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/md2_loader.cc

    r200 r204  
    357357        uint32 stats_collision  = 0;
    358358
    359         std::vector< sint32 > index_translation( md2->header.num_vertices, -1 );
     359        std::vector< sint32 > index_translation( static_cast< uint32 >( md2->header.num_vertices ), -1 );
    360360
    361361        m_new_indexes.clear();
  • trunk/src/formats/obj_loader.cc

    r198 r204  
    130130};
    131131
    132 std::size_t mesh_obj_reader::add_face( uint32* vi, uint32* ti, uint32* ni, size_t count )
     132size_t mesh_obj_reader::add_face( uint32* vi, uint32* ti, uint32* ni, size_t count )
    133133{
    134134        if ( count < 3 )
     
    181181        std::vector< vec4 >& tg = m_tangent->get();
    182182
    183         std::size_t count  = vp.size();
    184         std::size_t tcount = count / 3;
     183        size_t count  = vp.size();
     184        size_t tcount = count / 3;
    185185
    186186        std::vector< vec3 > tan1( count );
     
    188188        tg.resize( count );
    189189
    190         for (std::size_t a = 0; a < tcount; ++a )
    191         {
    192                 uint32 i1 = a * 3;
    193                 uint32 i2 = a * 3 + 1;
    194                 uint32 i3 = a * 3 + 2;
     190        for (size_t a = 0; a < tcount; ++a )
     191        {
     192                size_t i1 = a * 3;
     193                size_t i2 = a * 3 + 1;
     194                size_t i3 = a * 3 + 2;
    195195
    196196                // TODO: simplify
Note: See TracChangeset for help on using the changeset viewer.