diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-03 22:56:54 +0000 |
|---|---|---|
| committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-20 20:18:36 +0000 |
| commit | 0ef9d2aa934d6e5861206e8c5dd829dc09f4026a (patch) | |
| tree | efd690f67a58c2ea1c3984397c2aefebd716d7ce /src/oid.c | |
| parent | a4f863af4d0055126435eb01278940aaf727d2b3 (diff) | |
| download | libgit2-0ef9d2aa934d6e5861206e8c5dd829dc09f4026a.tar.gz | |
Fix some "signed v unsigned comparison" warnings with -Wextra
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/oid.c')
| -rw-r--r-- | src/oid.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -49,7 +49,7 @@ static char to_hex[] = "0123456789abcdef"; int git_oid_mkstr(git_oid *out, const char *str) { - int p; + size_t p; for (p = 0; p < sizeof(out->id); p++, str += 2) { int v = (from_hex[(unsigned char)str[0]] << 4) | from_hex[(unsigned char)str[1]]; @@ -69,7 +69,7 @@ GIT_INLINE(char) *fmt_one(char *str, unsigned int val) void git_oid_fmt(char *str, const git_oid *oid) { - int i; + size_t i; for (i = 0; i < sizeof(oid->id); i++) str = fmt_one(str, oid->id[i]); @@ -77,7 +77,7 @@ void git_oid_fmt(char *str, const git_oid *oid) void git_oid_pathfmt(char *str, const git_oid *oid) { - int i; + size_t i; str = fmt_one(str, oid->id[0]); *str++ = '/'; |
