Package: mplayerplug-in
Severity: normal
Tags: patch

When building 'mplayerplug-in' on amd64 with gcc-4.0,
I get the following error:

Source/plugin.cpp: In member function 'virtual NPError 
nsPluginInstance::SetWindow(NPWindow*)':
Source/plugin.cpp:560: error: cast from 'void*' to 'unsigned int' loses 
precision
Source/plugin.cpp:585: error: cast from 'void*' to 'unsigned int' loses 
precision
make[1]: *** [plugin.o] Error 1
make[1]: Leaving directory `/mplayerplug-in-2.70'
make: *** [debian/stamp-makefile-build] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/mplayerplug-in-2.70/Source/plugin-ui.cpp 
./Source/plugin-ui.cpp
--- ../tmp-orig/mplayerplug-in-2.70/Source/plugin-ui.cpp        2004-09-20 
22:21:37.000000000 +0000
+++ ./Source/plugin-ui.cpp      2005-02-28 09:03:21.635784071 +0000
@@ -241,7 +241,7 @@
     int PercentRedraw;
 
     if (0) {
-       printf("Widget: %i\n", (int) w);
+       printf("Widget: %li\n", (long) w);
        printf("Message: %s\n", message);
     }
 
diff -urN ../tmp-orig/mplayerplug-in-2.70/Source/plugin.cpp ./Source/plugin.cpp
--- ../tmp-orig/mplayerplug-in-2.70/Source/plugin.cpp   2004-09-22 
21:41:46.000000000 +0000
+++ ./Source/plugin.cpp 2005-02-28 09:03:03.078365995 +0000
@@ -556,8 +556,8 @@
 
     if ((Window) window != (Window) aWindow->window) {
        if (DEBUG)
-           printf("New window! old: 0x%x    new 0x%x\n",
-                  (unsigned int) window, (unsigned int) aWindow->window);
+           printf("New window! old: 0x%lx    new 0x%lx\n",
+                  (unsigned long) window, (unsigned long) aWindow->window);
     }
 
     if (controlwindow == 1)
@@ -581,8 +581,8 @@
 
     if (state < STATE_WINDOWSET) {
        if (DEBUG) {
-           printf("Size: %d %d %x\n", aWindow->x, aWindow->y,
-                  (unsigned int) aWindow->window);
+           printf("Size: %d %d %lx\n", aWindow->x, aWindow->y,
+                  (unsigned long) aWindow->window);
            printf("Size: %dx%d \n", aWindow->width, aWindow->height);
        }
 


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

Reply via email to