Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes for 64 bit support. #7

Merged
merged 1 commit into from

2 participants

Robert Clipsham Vladimir Panteleev
Robert Clipsham

Fixes 64 bit support.

Vladimir Panteleev CyberShadow merged commit cda7ea4 into from
Vladimir Panteleev
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 23, 2012
  1. Robert Clipsham

    Fixes for 64 bit support.

    mrmonday authored
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 9 deletions.
  1. +9 −9 dustmite.d
18 dustmite.d
View
@@ -24,7 +24,7 @@ import dsplit;
alias std.string.join join;
string dir, resultDir, tester, globalCache;
-int maxBreadth;
+size_t maxBreadth;
Entity[] set;
struct Times { Duration load, testSave, resultSave, test, clean, cacheHash, misc; }
@@ -41,7 +41,7 @@ struct Reduction
Type type;
// Remove / Unwrap
- uint[] address;
+ size_t[] address;
// ReplaceWord
string from, to;
@@ -189,9 +189,9 @@ Supported options:
return 0;
}
-int getMaxBreadth(Entity[] set)
+size_t getMaxBreadth(Entity[] set)
{
- int breadth = set.length;
+ size_t breadth = set.length;
foreach (ref child; set)
{
auto childBreadth = getMaxBreadth(child.children);
@@ -202,9 +202,9 @@ int getMaxBreadth(Entity[] set)
}
/// Try reductions at address. Edit set, save result and return true on successful reduction.
-bool testAddress(uint[] address)
+bool testAddress(size_t[] address)
{
- bool reduceSet(uint[] subAddress, ref Entity[] entities)
+ bool reduceSet(size_t[] subAddress, ref Entity[] entities)
{
auto i = subAddress[0];
if (subAddress.length > 1)
@@ -235,7 +235,7 @@ void testLevel(int testDepth, out bool tested, out bool changed)
tested = changed = false;
enum MAX_DEPTH = 1024;
- uint[MAX_DEPTH] address;
+ size_t[MAX_DEPTH] address;
void scan(ref Entity[] entities, int depth)
{
@@ -347,7 +347,7 @@ void reduceInDepth()
writefln("############### ITERATION %d ################", iterCount++);
enum MAX_DEPTH = 1024;
- uint[MAX_DEPTH] address;
+ size_t[MAX_DEPTH] address;
void scan(ref Entity[] entities, int depth)
{
@@ -517,7 +517,7 @@ void save(Reduction reduction, string savedir)
mkdirRecurse(savedir);
auto childReduction = reduction;
- void saveFiles(Entity[] entities, uint[] address)
+ void saveFiles(Entity[] entities, size_t[] address)
{
foreach (i, f; entities)
{
Something went wrong with that request. Please try again.