~ubuntu-branches/ubuntu/wily/aspectc++/wily

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/inc/Puma/PtrStack.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-15 10:17:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090615101702-qsr30iptwbxylmo2
Tags: 1.0pre4~svn.20090615-1
* New upstream release.
* don't ignore errors in the postrm script
* avoid spurious creation of empty dir ./usr/sbin/
* improve short descriptions of libpuma-doc and libpuma-dev
* bump Standards-Version to 3.8.1
* bump debhelper compat level to level 7 (latest in stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
 
124
124
template <class T>
125
125
inline T *PtrStack<T>::Get (long idx) const {
126
 
  if (Length () <= 0 || idx >= Length () || idx < 0)
 
126
  if (Length () <= 0 || idx < 0 || (unsigned long)idx >= (unsigned long)Length ())
127
127
    return (T*)0;
128
128
  return lookup (Bottom () + 1 + idx);
129
129
}