Fix compile error with gcc 2.95
This commit is contained in:
parent
1b858735f2
commit
acefbb0e34
|
|
@ -291,6 +291,7 @@ especially testing from many people, including (in alphabetical order):
|
||||||
Ed Carter <r47652@email.sps.mot.com>
|
Ed Carter <r47652@email.sps.mot.com>
|
||||||
Ales Hvezda <ahvezda@seul.org>
|
Ales Hvezda <ahvezda@seul.org>
|
||||||
James Lee <jml@seva.com>
|
James Lee <jml@seva.com>
|
||||||
|
Jason Schonberg <schon@mips.com>
|
||||||
Stuart Sutherland <stuart@sutherland.com>
|
Stuart Sutherland <stuart@sutherland.com>
|
||||||
Stephen Tell <tell@cs.unc.edu>
|
Stephen Tell <tell@cs.unc.edu>
|
||||||
Stefan Theide <Stefan.Thiede@sv.sc.philips.com>
|
Stefan Theide <Stefan.Thiede@sv.sc.philips.com>
|
||||||
|
|
|
||||||
13
sref.h
13
sref.h
|
|
@ -21,7 +21,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT)
|
#if !defined(WINNT)
|
||||||
#ident "$Id: sref.h,v 1.3 1999/07/18 21:17:51 steve Exp $"
|
#ident "$Id: sref.h,v 1.4 1999/08/05 04:58:17 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
|
|
@ -103,7 +103,7 @@ svector<const T2*>* sref_back<T1,T2>::back_list() const
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T1,class T2>
|
template <class T1,class T2>
|
||||||
svector<class T2*>* sref_back<T1,T2>::back_list()
|
svector<T2*>* sref_back<T1,T2>::back_list()
|
||||||
{
|
{
|
||||||
if (sback_ == 0) return 0;
|
if (sback_ == 0) return 0;
|
||||||
unsigned cnt = 1;
|
unsigned cnt = 1;
|
||||||
|
|
@ -113,12 +113,12 @@ svector<class T2*>* sref_back<T1,T2>::back_list()
|
||||||
cur = cur->next_;
|
cur = cur->next_;
|
||||||
}
|
}
|
||||||
|
|
||||||
svector<class T2*>* result = new svector<class T2*>(cnt);
|
svector<T2*>* result = new svector<T2*>(cnt);
|
||||||
(*result)[0] = dynamic_cast<class T2*>(sback_);
|
(*result)[0] = dynamic_cast<T2*>(sback_);
|
||||||
cur = sback_->next_;
|
cur = sback_->next_;
|
||||||
cnt = 1;
|
cnt = 1;
|
||||||
while (cur != sback_) {
|
while (cur != sback_) {
|
||||||
(*result)[cnt] = dynamic_cast<class T2*>(cur);
|
(*result)[cnt] = dynamic_cast<T2*>(cur);
|
||||||
cnt += 1;
|
cnt += 1;
|
||||||
cur = cur->next_;
|
cur = cur->next_;
|
||||||
}
|
}
|
||||||
|
|
@ -146,6 +146,9 @@ template <class T1, class T2> void sref_back<T1,T2>::desert_(sref<T1,T2>*item)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: sref.h,v $
|
* $Log: sref.h,v $
|
||||||
|
* Revision 1.4 1999/08/05 04:58:17 steve
|
||||||
|
* Fix compile error with gcc 2.95
|
||||||
|
*
|
||||||
* Revision 1.3 1999/07/18 21:17:51 steve
|
* Revision 1.3 1999/07/18 21:17:51 steve
|
||||||
* Add support for CE input to XNF DFF, and do
|
* Add support for CE input to XNF DFF, and do
|
||||||
* complete cleanup of replaced design nodes.
|
* complete cleanup of replaced design nodes.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue