File 64bit-cleanness.diff of Package rekall

--- libs/el32/hash.cpp
+++ libs/el32/hash.cpp
@@ -145,7 +145,7 @@
 			/* otherwise use just the tag (pretty useless	*/
 			/* but so what, not a common case).		*/
 			if ((key.tag->flags & TF_SHARED) == 0)
-				hval	= (int)key.val.shared ;
+				hval	= (unsigned long)key.val.shared ;
 			else	hval	= key.tag->tag ;
 			break	;
 	}
--- libs/kbase/kb_configdlg.cpp
+++ libs/kbase/kb_configdlg.cpp
@@ -312,7 +312,7 @@
 	old.clear () ;
 
 	QListViewItem	*item	= m_lvConfigs->firstChild() ;
-	uint		ident	= 0x000ffffff & (uint)(void *)item ;
+	uint		ident	= 0x000ffffff & (ulong)(void *)item ;
 
 	while (item != 0)
 	{
--- libs/kbase/kb_overridedlg.cpp
+++ libs/kbase/kb_overridedlg.cpp
@@ -360,7 +360,7 @@
 	old.clear () ;
 
 	QListViewItem	*item	= m_lvOverride->firstChild() ;
-	uint		ident	= 0x000ffffff & (uint)(void *)item ;
+	uint		ident	= 0x000ffffff & (ulong)(void *)item ;
 
 	while (item != 0)
 	{
--- libs/kbase/kb_stack.cpp
+++ libs/kbase/kb_stack.cpp
@@ -456,7 +456,7 @@
 				this,
 				SLOT	(setCurrentPage(int)),
 				0,
-				(int)p
+				(unsigned long)p
 			)	;
 		else
 			raiser->insertItem
@@ -464,7 +464,7 @@
 				this,
 				SLOT	(setCurrentPage(int)),
 				0,
-				(int)p
+				(unsigned long)p
 			)	;
 
 	)
openSUSE Build Service is sponsored by