patch-v2cc_v2cc-explore_cc 698 B

123456789101112131415161718
  1. $OpenBSD: patch-v2cc_v2cc-explore_cc,v 1.1 2017/06/03 14:25:16 espie Exp $
  2. the cast is needed because an iterator and a pointer are not exactly the
  3. same thing!
  4. Index: v2cc/v2cc-explore.cc
  5. --- v2cc/v2cc-explore.cc.orig
  6. +++ v2cc/v2cc-explore.cc
  7. @@ -2798,8 +2798,7 @@ check_association(pIIR_AssociationList assoc_list, lis
  8. {
  9. // Add entries
  10. association_map [key].push_back (range_vector [j]);
  11. - // XXX - why is the cast needed?
  12. - association_type_map [key] = (vector<vector<pair<pIIR_Type, pIIR_Type > > >::iterator) &association_type_vectors [i];
  13. + association_type_map [key] = association_type_vectors.begin() + i;
  14. // Generate a new key
  15. key.push_back (range_vector [j]);
  16. }