mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +02:00
Fix a too smart implicit cast
Apparently gcc is able to implicitly cast from `FileIngestionMethod` to `ContentAddressMethod`, but clang isn't. So explicit the cast
This commit is contained in:
parent
6147d27afb
commit
da90be789d
1 changed files with 1 additions and 1 deletions
|
@ -1202,7 +1202,7 @@ StorePath LocalStore::addToStoreFromDump(
|
||||||
Path tempDir;
|
Path tempDir;
|
||||||
AutoCloseFD tempDirFd;
|
AutoCloseFD tempDirFd;
|
||||||
|
|
||||||
bool methodsMatch = (FileIngestionMethod) dumpMethod == hashMethod;
|
bool methodsMatch = ContentAddressMethod(FileIngestionMethod(dumpMethod)) == hashMethod;
|
||||||
|
|
||||||
/* If the methods don't match, our streaming hash of the dump is the
|
/* If the methods don't match, our streaming hash of the dump is the
|
||||||
wrong sort, and we need to rehash. */
|
wrong sort, and we need to rehash. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue