summaryrefslogtreecommitdiffstats
path: root/qtools/qgarray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qgarray.cpp')
-rw-r--r--qtools/qgarray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/qgarray.cpp b/qtools/qgarray.cpp
index efc9de0..df31363 100644
--- a/qtools/qgarray.cpp
+++ b/qtools/qgarray.cpp
@@ -635,7 +635,7 @@ extern "C" {
static int cmp_arr( const void *n1, const void *n2 )
{
return ( n1 && n2 ) ? memcmp( n1, n2, cmp_item_size )
- : (int)((long)n1 - (long)n2);
+ : (int)((intptr_t)n1 - (intptr_t)n2);
// Qt 3.0: Add a virtual compareItems() method and call that instead
}