Hello
On Thu, Mar 03, 2005 at 10:46:09AM +0100, Andreas Jochens wrote:
> Package: xclass
> Severity: normal
> Tags: patch
>
> When building 'xclass' on amd64 with gcc-4.0,
> I get the following error:
Thanks for the patch.
I'll apply it on next upload. NMU is allowed.
Regards,
// Ola
> c++ -I../../include -DOX_DEFAULT_POOL=\"/usr/share/xclass/icons\"
> -DOX_DEFAULT_ROOT=\"\" -O2 -fPIC -c OXHtmlParse.cc
> OXHtmlParse.cc: In member function 'void OXHtml::PrintList(OHtmlElement*,
> OHtmlElement*)':
> OXHtmlParse.cc:1490: error: cast from 'OHtmlElement*' to 'int' loses precision
> OXHtmlParse.cc:1494: error: cast from 'OHtmlElement*' to 'int' loses precision
> make[3]: *** [OXHtmlParse.o] Error 1
> make[3]: Leaving directory `/xclass-0.8.3/lib/libxclass'
>
> With the attached patch 'xclass' can be compiled
> on amd64 using gcc-4.0.
>
> Regards
> Andreas Jochens
>
> diff -urN ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlParse.cc
> ./lib/libxclass/OXHtmlParse.cc
> --- ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlParse.cc 2004-07-05
> 16:05:57.000000000 +0200
> +++ ./lib/libxclass/OXHtmlParse.cc 2005-03-03 09:33:30.000000000 +0100
> @@ -1486,12 +1486,12 @@
> n = 1;
> z = "";
> }
> - printf("Block 0x%08x flags=%02x cnt=%d x=%d..%d y=%d..%d z=\"%.*s\"\n",
> - (int) p, p->flags, p->count, block->left, block->right,
> + printf("Block 0x%16lx flags=%02x cnt=%d x=%d..%d y=%d..%d
> z=\"%.*s\"\n",
> + (long) p, p->flags, p->count, block->left, block->right,
> block->top, block->bottom, n, z);
> } else {
> - printf("Token 0x%08x font=%2d color=%2d align=%d flags=0x%04x
> name=%s\n",
> - (int) p, p->style.font, p->style.color,
> + printf("Token 0x%16lx font=%2d color=%2d align=%d flags=0x%04x
> name=%s\n",
> + (long) p, p->style.font, p->style.color,
> p->style.align, p->style.flags, DumpToken(p));
> }
> }
> diff -urN ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlSizer.cc
> ./lib/libxclass/OXHtmlSizer.cc
> --- ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlSizer.cc 2004-07-05
> 16:05:57.000000000 +0200
> +++ ./lib/libxclass/OXHtmlSizer.cc 2005-03-03 10:24:23.000000000 +0100
> @@ -980,9 +980,9 @@
> }
>
> TRACE(HtmlTrace_Style,
> - ("Style of 0x%08x font=%02d color=%02d bg=%02d "
> + ("Style of 0x%16lx font=%02d color=%02d bg=%02d "
> "align=%d flags=0x%04x token=%s\n",
> - (int)p, p->style.font, p->style.color, p->style.bgcolor,
> + (long)p, p->style.font, p->style.color, p->style.bgcolor,
> p->style.align, p->style.flags, DumpToken(p)));
>
> p = p->pNext;
>
>
--
--------------------- Ola Lundqvist ---------------------------
/ [EMAIL PROTECTED] Annebergsslingan 37 \
| [EMAIL PROTECTED] 654 65 KARLSTAD |
| +46 (0)54-10 14 30 +46 (0)70-332 1551 |
| http://www.opal.dhs.org UIN/icq: 4912500 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]