~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/src/basics/BCStack.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  BCStack () : _length (0L) {}
38
38
  long length () const { return _length; }
39
39
  void push (Item item) {
40
 
    if (_tos != BCList<Item, BUCKET_SIZE>::end ())
 
40
    if (_tos)
41
41
      ++_tos;
42
 
    if (_tos == BCList<Item, BUCKET_SIZE>::end ()) 
 
42
    if (! _tos) 
43
43
      _tos = add (item);
44
44
    else
45
45
      *_tos = item;