diff options
Diffstat (limited to 'src/git.cpp')
-rw-r--r-- | src/git.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/git.cpp b/src/git.cpp index 1c9da62..e6aed3f 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -1,6 +1,7 @@ #include "git.h" +#include <array> +#include <cerrno> #include <exceptions.h> -#include <execinfo.h> #include <sys/stat.h> #include <types.h> @@ -99,7 +100,7 @@ namespace NetFS { operator<<(Attr & a, const git_blob & b) { a.blockSize = 1; - a.blocks = a.size = git_blob_rawsize(&b); + a.blocks = a.size = static_cast<decltype(Attr::blocks)>(git_blob_rawsize(&b)); return a; } } |