Re: Compile Problems on x86_64 (+ solution)
Kevin DeKorte <[email protected]> Sun, 30 Dec 2007 15:28:24 -0700
| Newsgroups | gmane.comp.mozilla.mplayerplug-in |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Marquardt wrote:
> Hello list,
>
> I tried to compile a recent cvs checkout on a Core2Duo (x86_64) but
> compilation failed with the error:
>
> cast from _WidgetRec* to int loses precision
>
> on line 287 in plugin-ui.cpp. By changing
>
> printf("Widget: %i\n", (int) w);
>
> to
>
> printf("Widget: %i\n", (long) w);
>
> mplayerplug-in compiles fine on 64bit machines.
>
> regards,
> Peter Marquardt
That really should not be a fatal warning.... and probably it should be
%p rather than %i anyway.
Plus that line is actually not used... check out the if block around it.
So you can delete it if you want..
I committed a minor fix to CVS anyway.
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHeBuI6w2kMH0L1dERAnVWAJ4mBhkUPy3naFeN7veplkbYtCf4nACgkxpn
9f+5RPPCrWBkPO+NWeq+2d4=
=6Fl+
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/