File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class CompCache: public CompCacheIF {
5454
5555 return ret;
5656 }
57- uint32_t get_extra_bytes (void * c) const override {
57+ uint64_t get_extra_bytes (void * c) const override {
5858 T* comp = reinterpret_cast <T*>(c);
5959 return comp->extra_bytes ();
6060 }
@@ -98,7 +98,7 @@ class CompCache: public CompCacheIF {
9898 bool find_comp_and_incorporate_cnt (StackLevel &top, const uint32_t nvars, const void * c) override {
9999 const T& comp = *reinterpret_cast <const T*>(c);
100100 stats.num_cache_look_ups ++;
101- uint32_t table_ofs = comp.get_hashkey () & tbl_size_mask;
101+ uint32_t table_ofs = ( uint32_t ) comp.get_hashkey () & tbl_size_mask;
102102 CacheEntryID act_id = table[table_ofs];
103103 if (!act_id) return false ;
104104 while (act_id){
@@ -192,7 +192,7 @@ class CompCache: public CompCacheIF {
192192 }
193193
194194 uint32_t table_pos (CacheEntryID id) const {
195- return entry (id).get_hashkey () & tbl_size_mask;
195+ return ( uint32_t ) entry (id).get_hashkey () & tbl_size_mask;
196196 }
197197
198198 void add_descendant (CacheEntryID compid, CacheEntryID descendantid) {
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class CompCacheIF {
4141 virtual ~CompCacheIF ();
4242
4343 virtual CacheEntryID add_new_comp (void * comp, CacheEntryID super_comp_id) = 0;
44- virtual uint32_t get_extra_bytes (void * comp) const = 0;
44+ virtual uint64_t get_extra_bytes (void * comp) const = 0;
4545 virtual bool find_comp_and_incorporate_cnt (StackLevel &top, const uint32_t nvars, const void * comp) = 0;
4646 virtual void * create_new_comp (const Comp &comp, uint64_t hash_seed, const BPCSizes& bpc) = 0;
4747 virtual void free_comp (void * comp) = 0;
You can’t perform that action at this time.
0 commit comments