Ignore:
Timestamp:
08/11/13 17:19:03 (12 years ago)
Author:
epyon
Message:
  • warning cleanup for clang and gcc
File:
1 edited

Legend:

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

    r180 r198  
    9595        if ( dice < 1 )  luaL_argerror( L, 1, "die count lower than 1!" );
    9696        if ( sides < 1 ) luaL_argerror( L, 2, "side count lower than 1!" );
    97         lua_pushnumber( L, nv::random::get().dice( dice, sides ) );
     97        lua_pushnumber( L, nv::random::get().dice( static_cast< nv::uint32 >( dice ), static_cast< nv::uint32 >( sides ) ) );
    9898        return 1;
    9999}
     
    111111                        int arg1 = luaL_checkinteger( L, 1 );
    112112                        if ( arg1 < 1 ) arg1 = 1;
    113                         lua_pushunsigned( L, nv::random::get().urange( 1, arg1 ) );
     113                        lua_pushunsigned( L, nv::random::get().urange( 1, static_cast<nv::uint32>( arg1 ) ) );
    114114                }
    115115                else
     
    126126static int nluaaux_math_randomseed( lua_State* L )
    127127{
    128         nv::random::get().set_seed( static_cast< nv::uint32 > ( L, 1 ) );
     128        nv::random::get().set_seed( lua_tounsigned( L, 1 ) );
    129129        return 0;
    130130}
Note: See TracChangeset for help on using the changeset viewer.