# HG changeset patch # User Eldar Insafutdinov # Date 1300408248 0 # Node ID 778ef7374fb5e709efa0cc19e9b5fa5ac224f0c2 # Parent 8564ab82ea4274964f4dd5b9bf37777b230ea756 Fixes for 64 bit. Now all examples compile with gdc 64 bit diff -r 8564ab82ea42 -r 778ef7374fb5 examples/itemviews/CMakeLists.txt --- a/examples/itemviews/CMakeLists.txt Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/itemviews/CMakeLists.txt Fri Mar 18 00:30:48 2011 +0000 @@ -1,2 +1,2 @@ - add_subdirectory(dirview) +add_subdirectory(dirview) add_subdirectory(customsortfiltermodel) \ No newline at end of file diff -r 8564ab82ea42 -r 778ef7374fb5 examples/layouts/borderlayout/borderlayout.d --- a/examples/layouts/borderlayout/borderlayout.d Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/layouts/borderlayout/borderlayout.d Fri Mar 18 00:30:48 2011 +0000 @@ -104,7 +104,7 @@ int count() const { - return list.length; + return cast(int)list.length; } IQLayoutItem itemAt(int index) const diff -r 8564ab82ea42 -r 778ef7374fb5 examples/layouts/dynamiclayouts/dialog.d --- a/examples/layouts/dynamiclayouts/dialog.d Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/layouts/dynamiclayouts/dialog.d Fri Mar 18 00:30:48 2011 +0000 @@ -117,7 +117,7 @@ rotableWidgets = rotableWidgets[1..$] ~ rotableWidgets[0]; - int n = rotableWidgets.length; + auto n = rotableWidgets.length; for (int i = 0; i < n / 2; ++i) { rotableLayout.addWidget(rotableWidgets[n - i - 1], 0, i); rotableLayout.addWidget(rotableWidgets[i], 1, i); @@ -146,7 +146,7 @@ rotableWidgets ~= a2; rotableWidgets ~= a3; - int n = rotableWidgets.length; + auto n = rotableWidgets.length; for (int i = 0; i < n; ++i) connect(rotableWidgets[i], "valueChanged", rotableWidgets[(i + 1) % n], "setValue");