Implement auto-decoding free equal comparison

Fix #39.
This commit is contained in:
2018-06-12 20:19:06 +02:00
parent 15f7994187
commit a86b6690f0
7 changed files with 70 additions and 5 deletions

View File

@ -40,6 +40,11 @@ version (TanyaNative)
fillMemory(buffer[1 .. $], 0);
assert(buffer[0] == 1 && buffer[1] == 0);
}
@nogc nothrow pure @safe unittest
{
assert(cmp(null, null) == 0);
}
}
private enum alignMask = size_t.sizeof - 1;