git-bundle: only die if pack would be empty, warn if ref is skipped
[gitweb.git] / builtin-blame.c
index 20966b9e02449617d4fc9a91bbd616ce37ae547a..b51cdc71faeca467cd3a965db0ff84d1f087076d 100644 (file)
@@ -1963,7 +1963,7 @@ static struct commit *fake_working_tree_commit(const char *path, const char *con
                                die("Cannot lstat %s", path);
                        read_from = path;
                }
-               fin_size = st.st_size;
+               fin_size = xsize_t(st.st_size);
                buf = xmalloc(fin_size+1);
                mode = canon_mode(st.st_mode);
                switch (st.st_mode & S_IFMT) {