Package: sam2p
Version: 0.44-7-1
Severity: normal
Tags: patch

When building 'sam2p' on amd64/unstable with gcc-4.0,
I get the following error:

helpere.hpp: In constructor 'HelperE::HelperE(const char*, const char*)':
helpere.hpp:22: error: cast from 'const char*' to 'slendiff_t' loses precision
make[1]: *** [in_ps.o] Error 1
make[1]: Leaving directory `/sam2p-0.44-7'
make: *** [build-stamp] Error 2

With the attached patch 'sam2p' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/sam2p-0.44-7/helpere.hpp ./helpere.hpp
--- ../tmp-orig/sam2p-0.44-7/helpere.hpp        2003-12-09 11:03:58.000000000 
+0100
+++ ./helpere.hpp       2005-04-08 13:35:33.086740281 +0200
@@ -19,7 +19,7 @@
 /** Ugly multiple inheritance. !! unify with PNG, TIFF etc. */
 class HelperE: public Filter::NullE, public Filter::PipeE {
  public:
-  inline HelperE(char const*filter_cmd, char const*mainfn=NULL): 
Filter::NullE(), Filter::PipeE(*(Filter::NullE*)this, filter_cmd, 
(slendiff_t)mainfn) {
+  inline HelperE(char const*filter_cmd, char const*mainfn=NULL): 
Filter::NullE(), Filter::PipeE(*(Filter::NullE*)this, filter_cmd, (long)mainfn) 
{
     /* ^^^ (slendiff_t) is unsafe cast */
     // GenBuffer::Writable &out_, char *pipe_tmpl, slendiff_t i=0)
   }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to