mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
* Use a union.
This commit is contained in:
parent
2d2e28d02c
commit
e8475bbd5b
1 changed files with 1 additions and 2 deletions
|
@ -14,7 +14,6 @@ extern "C" {
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hash::Hash()
|
Hash::Hash()
|
||||||
{
|
{
|
||||||
type = htUnknown;
|
type = htUnknown;
|
||||||
|
@ -198,7 +197,7 @@ bool isHash(const string & s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct Ctx
|
union Ctx
|
||||||
{
|
{
|
||||||
md5_ctx md5;
|
md5_ctx md5;
|
||||||
sha_ctx sha1;
|
sha_ctx sha1;
|
||||||
|
|
Loading…
Reference in a new issue