diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-03-30 22:31:51 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-03-30 22:31:51 +0000 |
commit | 51afea3af23640a3fb2cfe8cfae5cf3cc27eb3a1 (patch) | |
tree | a60c8f005ecc3c051f2641ad5e63ac86ec897e96 /src/libstore/path.hh | |
parent | c251b011cda4992caeba1094c63067018d05a7dd (diff) |
Never cast `FileIngestionMethod` to or from boolean
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r-- | src/libstore/path.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/path.hh b/src/libstore/path.hh index 73c4b8e29..5122e7422 100644 --- a/src/libstore/path.hh +++ b/src/libstore/path.hh @@ -73,7 +73,7 @@ const size_t storePathHashLen = 32; // i.e. 160 bits /* Extension of derivations in the Nix store. */ const std::string drvExtension = ".drv"; -enum struct FileIngestionMethod : bool { +enum struct FileIngestionMethod : uint8_t { Flat = false, Recursive = true }; |