Ignore:
Timestamp:
09/09/13 21:14:19 (12 years ago)
Author:
epyon
Message:
  • root - no longer holds a type_database
  • lua - lua::state has it's own type_database
  • lua - convinience function for registering enums
  • cleanup of clang errors and warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_flags.cc

    r209 r215  
    2020        // TODO : this can be optimized
    2121        lua_createtable( L, 0, 0 );
    22         for ( uint32 c = 0; c < count; ++c )
     22        for ( int c = 0; c < static_cast< int >( count ); ++c )
    2323        {
    24                 uint32 idx = c / 8;
    25                 uint32 pos = c % 8;
     24                int idx = c / 8;
     25                int pos = c % 8;
    2626                if ( ( data[ idx ] & ( 1 << static_cast< uint8 >( pos ) ) ) != 0 )
    2727                {
Note: See TracChangeset for help on using the changeset viewer.