diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-03-14 17:41:04 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-03-14 17:41:04 -0700 |
| commit | e24fbba94862fdb602846771f2ae41ef15834d10 (patch) | |
| tree | 4b11910d7d315a6db667cc4af4c6749630612ed3 /src/buffer.h | |
| parent | dda708e78f3c3f43d814d46c29ab9f2b9d47ed5c (diff) | |
| parent | deafee7bd7a9e2efcdff90627b6094d8c1519319 (diff) | |
| download | libgit2-e24fbba94862fdb602846771f2ae41ef15834d10.tar.gz | |
Merge pull request #595 from arrbee/new-errors-odb
Update odb code to new error handling
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h index 6f59dce62..d90db4d4a 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -102,9 +102,9 @@ void git_buf_copy_cstr(char *data, size_t datasize, const git_buf *buf); #define git_buf_PUTS(buf, str) git_buf_put(buf, str, sizeof(str) - 1) -GIT_INLINE(int) git_buf_rfind_next(git_buf *buf, char ch) +GIT_INLINE(ssize_t) git_buf_rfind_next(git_buf *buf, char ch) { - int idx = buf->size - 1; + ssize_t idx = (ssize_t)buf->size - 1; while (idx >= 0 && buf->ptr[idx] == ch) idx--; while (idx >= 0 && buf->ptr[idx] != ch) idx--; return idx; |
