diff d2/qt/core/QList.d @ 402:e67ce7c21758

gdc & 64 bit changes
author Eldar Insafutdinov
date Thu, 17 Mar 2011 19:45:42 +0000
parents a032df77b6ab
children
line wrap: on
line diff
--- a/d2/qt/core/QList.d	Wed Oct 20 09:45:59 2010 +0200
+++ b/d2/qt/core/QList.d	Thu Mar 17 19:45:42 2011 +0000
@@ -85,7 +85,7 @@
 {
     // dear compiler: don't optimize me out.
 //    synchronized {
-        int x = qAllocMore(size * (void*).sizeof, QListData.DataHeaderSize) / (void*).sizeof;
+        int x = cast(int) (qAllocMore(cast(int)(size * (void*).sizeof), QListData.DataHeaderSize) / (void*).sizeof);
         return x;
 //    }
 }
@@ -303,7 +303,7 @@
     void **erase(void **xi)
     {
 //        Q_ASSERT(d.ref_ == 1);
-        int i = xi - (d.array.ptr + d.begin);
+        int i = cast(int)(xi - (d.array.ptr + d.begin));
         remove(i);
         return d.array.ptr + d.begin + i;
     }