reassign 358474 etl-dev
thanks

Hi,

As discussed on IRC, the problem is because the ETL template library
assumes that sizeof(pointer) == sizeof(int).  Attached is an untested
patch that works around this by casting the difference between two
pointers back to an int.  If that doesn't work, you might have to stash
the result in a temporary int variable - I'm a bit hazy on how C++
references work.

Cheers,

Cameron.

--- _surface.h.orig     2006-03-25 06:58:07.000000000 +0000
+++ _surface.h  2006-03-25 06:58:43.000000000 +0000
@@ -274,8 +274,8 @@
                }
                                
                //clip width against dest width
-               w = std::min(w,DEST_PEN.end_x()-DEST_PEN.x());
-               h = std::min(h,DEST_PEN.end_y()-DEST_PEN.y());
+               w = std::min(w,(int)(DEST_PEN.end_x()-DEST_PEN.x()));
+               h = std::min(h,(int)(DEST_PEN.end_y()-DEST_PEN.y()));
                
                //clip width against src width
                w = std::min(w,w_-x);           

Attachment: signature.asc
Description: Digital signature

Reply via email to