Fix signed/unsigned mismatch warning
This commit is contained in:
parent
aa794e7836
commit
8944facd41
2 changed files with 12 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue