summaryrefslogtreecommitdiffstats
path: root/opensuse/core/qt3/qt3-fix-cast.diff
blob: 5ad34108b8f4849a0d4a068d28dd5ad05d1530f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: tools/qvfb/qvfbview.cpp
================================================================================
--- tools/qvfb/qvfbview.cpp
+++ tools/qvfb/qvfbview.cpp
@@ -115,7 +115,7 @@
 	data = (unsigned char *)shmat( shmId, 0, 0 );
     }
 
-    if ( (int)data == -1 )
+    if ( (long)data == -1 )
 	qFatal( "Cannot attach to shared memory" );
 
     hdr = (QVFbHeader *)data;