summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-08-15 00:08:38 +0200
committernulltoken <emeric.fermas@gmail.com>2012-08-15 00:08:38 +0200
commit1a0537e45099054a50e148e5af915a32928705b4 (patch)
tree15b790474ded57a190bef3dc0218dd3e1bb048e3
parentfc1826d149faee191adf38d6a91d5a9fa7c8cddc (diff)
downloadlibgit2-1a0537e45099054a50e148e5af915a32928705b4.tar.gz
Fix compilation warning
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index a4eb71876..6f1f4349b 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1095,7 +1095,7 @@ int git_repository_message(char *buffer, size_t len, git_repository *repo)
if (buffer == NULL) {
git_buf_free(&path);
- return st.st_size;
+ return (int)st.st_size;
}
if (git_futils_readbuffer(&buf, git_buf_cstr(&path)) < 0)