2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:04:56 +00:00

Update submodules

This commit is contained in:
Jack Andersen
2016-12-11 10:20:55 -10:00
parent a8db552ce2
commit 399cdfc657
3 changed files with 8 additions and 4 deletions

2
hecl/extern/athena vendored

Submodule hecl/extern/athena updated: 8fce7ce161...255f2bf745

2
hecl/extern/boo vendored

Submodule hecl/extern/boo updated: c057068e64...1177d50eda

View File

@@ -187,7 +187,7 @@ public:
/// find_first_contiguous - Returns the index of the first contiguous
/// set of bits of "Length", -1 if no contiguous bits found.
int find_first_contiguous(unsigned Length) const {
int find_first_contiguous(unsigned Length, unsigned BucketSz) const {
for (int idx = find_first(); idx != -1; idx = find_next(idx)) {
if (idx + Length > size())
return -1;
@@ -201,7 +201,11 @@ public:
}
}
if (good)
return idx;
{
unsigned space = BucketSz - (idx % BucketSz);
if (space >= Length)
return idx;
}
}
return -1;
}