diff options
| author | Russell Belfer <rb@github.com> | 2013-02-27 15:15:39 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-02-27 15:15:39 -0800 |
| commit | f708c89fa6e0d156d7b083de53d311babd3d2d8c (patch) | |
| tree | 03fd9b7feab0b98edf9f8e739a72dbcb0c559acb /src/hashsig.c | |
| parent | 11b5beb7ba92ae1214f1fec91d8e13df2e6dca01 (diff) | |
| download | libgit2-f708c89fa6e0d156d7b083de53d311babd3d2d8c.tar.gz | |
fixing some warnings on Windows
Diffstat (limited to 'src/hashsig.c')
| -rw-r--r-- | src/hashsig.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hashsig.c b/src/hashsig.c index 9fe8f6671..b6020e7f3 100644 --- a/src/hashsig.c +++ b/src/hashsig.c @@ -190,8 +190,8 @@ static void hashsig_initial_window( /* insert initial hash if we just finished */ if (win_len == HASHSIG_HASH_WINDOW) { - hashsig_heap_insert(&sig->mins, state); - hashsig_heap_insert(&sig->maxs, state); + hashsig_heap_insert(&sig->mins, (hashsig_t)state); + hashsig_heap_insert(&sig->maxs, (hashsig_t)state); sig->considered = 1; } @@ -231,8 +231,8 @@ static int hashsig_add_hashes( state = (state * HASHSIG_HASH_SHIFT) & HASHSIG_HASH_MASK; state = (state + ch) & HASHSIG_HASH_MASK; - hashsig_heap_insert(&sig->mins, state); - hashsig_heap_insert(&sig->maxs, state); + hashsig_heap_insert(&sig->mins, (hashsig_t)state); + hashsig_heap_insert(&sig->maxs, (hashsig_t)state); sig->considered++; prog->window[prog->win_pos] = ch; @@ -314,7 +314,7 @@ int git_hashsig_create_fromfile( while (!error) { if ((buflen = p_read(fd, buf, sizeof(buf))) <= 0) { - if ((error = buflen) < 0) + if ((error = (int)buflen) < 0) giterr_set(GITERR_OS, "Read error on '%s' calculating similarity hashes", path); break; |
