Fix signed/unsigned mismatch warning

This commit is contained in:
Eric Frias 2015-07-15 14:42:35 -04:00
parent aa794e7836
commit 8944facd41
2 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,16 @@
#include <graphene/chain/protocol/fee_schedule.hpp>
#include <fc/smart_ref_impl.hpp>
namespace fc
{
// explicitly instantiate the smart_ref, gcc fails to instantiate it in some release builds
//template graphene::chain::fee_schedule& smart_ref<graphene::chain::fee_schedule>::operator=(smart_ref<graphene::chain::fee_schedule>&&);
//template graphene::chain::fee_schedule& smart_ref<graphene::chain::fee_schedule>::operator=(U&&);
//template graphene::chain::fee_schedule& smart_ref<graphene::chain::fee_schedule>::operator=(const smart_ref&);
//template smart_ref<graphene::chain::fee_schedule>::smart_ref();
//template const graphene::chain::fee_schedule& smart_ref<graphene::chain::fee_schedule>::operator*() const;
}
namespace graphene { namespace chain {
typedef fc::smart_ref<fee_schedule> smart_fee_schedule;
@ -12,7 +22,7 @@ namespace graphene { namespace chain {
fee_schedule fee_schedule::get_default()
{
fee_schedule result;
for( uint32_t i = 0; i < fee_parameters().count(); ++i )
for( int i = 0; i < fee_parameters().count(); ++i )
{
fee_parameters x; x.set_which(i);
result.parameters.insert(x);

View file

@ -365,7 +365,7 @@ int main( int argc, char** argv )
operation op;
std::cout << "ChainTypes.operations=\n";
for( uint32_t i = 0; i < op.count(); ++i )
for( int i = 0; i < op.count(); ++i )
{
op.set_which(i);
op.visit( detail_ns::serialize_type_visitor(i) );