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;