ports/lang/freehdl/patches/patch-v2cc_v2cc-explore_cc

17 lines
623 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
the cast is needed because an iterator and a pointer are not exactly the
same thing!
Index: v2cc/v2cc-explore.cc
--- v2cc/v2cc-explore.cc.orig
+++ v2cc/v2cc-explore.cc
@@ -2798,8 +2798,7 @@ check_association(pIIR_AssociationList assoc_list, lis
{
// Add entries
association_map [key].push_back (range_vector [j]);
- // XXX - why is the cast needed?
- association_type_map [key] = (vector<vector<pair<pIIR_Type, pIIR_Type > > >::iterator) &association_type_vectors [i];
+ association_type_map [key] = association_type_vectors.begin() + i;
// Generate a new key
key.push_back (range_vector [j]);
}