Author: Carlos Lopez <genet...@gmail.com>
Date:   Thu Jun 28 22:00:06 2012 +0200

Use unsigned char for the pointer passed to the new set_wh member function.

---

 ETL/ETL/_surface.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ETL/ETL/_surface.h b/ETL/ETL/_surface.h
index 5638299..06c2109 100644
--- a/ETL/ETL/_surface.h
+++ b/ETL/ETL/_surface.h
@@ -229,7 +229,7 @@ public:
        }
 
        virtual void
-       set_wh(typename size_type::value_type w, typename size_type::value_type 
h, value_type* newdata, const typename size_type::value_type &pitch)
+       set_wh(typename size_type::value_type w, typename size_type::value_type 
h, unsigned char* newdata, const typename size_type::value_type &pitch)
        {
                if(data_ && deletable_)
                {
@@ -237,7 +237,7 @@ public:
                }
                w_=w;
                h_=h;
-               zero_pos_=data_=newdata;
+               zero_pos_=data_=(pointer)newdata;
                pitch_=pitch;
                deletable_=false;       
        }


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to