Package: hplip
Version: 0.9.1-1
Severity: normal
Tags: patch

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

ljjetready.cpp: In member function 'virtual apdk::DISPLAY_STATUS 
apdk::LJJetReady::ParseError(BYTE)':
ljjetready.cpp:708: error: cast from 'apdk::LJJetReady*' to 'int' loses 
precision

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/hplip-0.9.1/prnt/hpijs/auto-include.h 
./prnt/hpijs/auto-include.h
--- ../tmp-orig/hplip-0.9.1/prnt/hpijs/auto-include.h   1970-01-01 
01:00:00.000000000 +0100
+++ ./prnt/hpijs/auto-include.h 2005-04-03 00:39:14.000000000 +0200
@@ -0,0 +1 @@
+#include <stdint.h>
diff -urN ../tmp-orig/hplip-0.9.1/prnt/hpijs/ljfastraster.cpp 
./prnt/hpijs/ljfastraster.cpp
--- ../tmp-orig/hplip-0.9.1/prnt/hpijs/ljfastraster.cpp 2005-04-01 
22:35:54.000000000 +0200
+++ ./prnt/hpijs/ljfastraster.cpp       2005-04-03 10:17:53.471374200 +0200
@@ -591,7 +591,7 @@
         while (*tmpStr < '0' || *tmpStr > '9')
             tmpStr++;
         sscanf (tmpStr, "%d", &iErrorCode);
-        if (iErrorCode != (int) (this))
+        if (iErrorCode != (long) (this))
             return DISPLAY_PRINTING;
     }
 
diff -urN ../tmp-orig/hplip-0.9.1/prnt/hpijs/ljjetready.cpp 
./prnt/hpijs/ljjetready.cpp
--- ../tmp-orig/hplip-0.9.1/prnt/hpijs/ljjetready.cpp   2005-04-01 
22:35:54.000000000 +0200
+++ ./prnt/hpijs/ljjetready.cpp 2005-04-03 10:17:37.758320317 +0200
@@ -705,7 +705,7 @@
         while (*tmpStr < '0' || *tmpStr > '9')
             tmpStr++;
         sscanf (tmpStr, "%d", &iErrorCode);
-        if (iErrorCode != (int) (this))
+        if (iErrorCode != (long) (this))
             return DISPLAY_PRINTING;
     }
 


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

Reply via email to