Small changes for clang14
Clang14 changes
This commit is contained in:
parent
611a63076b
commit
1a21c3f432
4 changed files with 4 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -48,3 +48,4 @@ object_database/*
|
||||||
.vscode
|
.vscode
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
|
/.cache/clangd/*
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ namespace graphene { namespace db {
|
||||||
{
|
{
|
||||||
static_assert( object_id::space_id == Object::space_id, "Space ID mismatch!" );
|
static_assert( object_id::space_id == Object::space_id, "Space ID mismatch!" );
|
||||||
static_assert( object_id::type_id == Object::type_id, "Type_ID mismatch!" );
|
static_assert( object_id::type_id == Object::type_id, "Type_ID mismatch!" );
|
||||||
if( id.instance >= next ) return nullptr;
|
if( (const unsigned long) id.instance >= next ) return nullptr;
|
||||||
return content[id.instance.value >> chunkbits][id.instance.value & _mask];
|
return content[id.instance.value >> chunkbits][id.instance.value & _mask];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -217,6 +217,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void create_redeem_script(const fc::ecc::public_key &user_key_data, const std::vector<std::pair<fc::ecc::public_key, uint16_t>> &keys_data);
|
void create_redeem_script(const fc::ecc::public_key &user_key_data, const std::vector<std::pair<fc::ecc::public_key, uint16_t>> &keys_data);
|
||||||
|
|
||||||
|
public:
|
||||||
uint32_t latency_;
|
uint32_t latency_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE( flat_index_test )
|
||||||
price_feed current_feed;
|
price_feed current_feed;
|
||||||
current_feed.settlement_price = bitusd.amount(100) / asset(100);
|
current_feed.settlement_price = bitusd.amount(100) / asset(100);
|
||||||
publish_feed(bitusd, sam, current_feed);
|
publish_feed(bitusd, sam, current_feed);
|
||||||
FC_ASSERT( bitusd.bitasset_data_id->instance == 0 );
|
FC_ASSERT( bitusd.bitasset_data_id->instance == (const fc::unsigned_int) 0 );
|
||||||
FC_ASSERT( !(*bitusd.bitasset_data_id)(db).current_feed.settlement_price.is_null() );
|
FC_ASSERT( !(*bitusd.bitasset_data_id)(db).current_feed.settlement_price.is_null() );
|
||||||
try {
|
try {
|
||||||
auto ses = db._undo_db.start_undo_session();
|
auto ses = db._undo_db.start_undo_session();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue