From db0d2eebb169e4dbe0a66e507c16b666b1d5dccf Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 31 Mar 2007 08:02:08 +0000 Subject: [PATCH] subptr() should subtract from the pointer, not add to it. git-svn-id: http://svn.voria.com/code@397 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_pen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ETL/trunk/ETL/_pen.h b/ETL/trunk/ETL/_pen.h index 110cb6a..aa6bfab 100644 --- a/ETL/trunk/ETL/_pen.h +++ b/ETL/trunk/ETL/_pen.h @@ -154,7 +154,7 @@ private: void subptr(int nbytes) { - data_ = (pointer)((char*)data_ + nbytes); + data_ = (pointer)((char*)data_ - nbytes); } public: -- 2.7.4