subptr() should subtract from the pointer, not add to it.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 31 Mar 2007 08:02:08 +0000 (08:02 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 31 Mar 2007 08:02:08 +0000 (08:02 +0000)
git-svn-id: http://svn.voria.com/code@397 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/ETL/_pen.h

index 110cb6a..aa6bfab 100644 (file)
@@ -154,7 +154,7 @@ private:
 
        void subptr(int nbytes)
        {
-               data_ = (pointer)((char*)data_ + nbytes);
+               data_ = (pointer)((char*)data_ - nbytes);
        }
 
 public: