commit | 85eb0f162c5e47d37221496030dc49d10f3554a2 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Wed Nov 21 22:58:09 2018 +0900 |
committer | Junio C Hamano <gitster@pobox.com> | Wed Nov 21 22:58:09 2018 +0900 |
tree | 3eb6181984352f54369a56608943427aa5a8cc83 | |
parent | 2b153408b459e2483fca0215b44b0a1199a1b352 [diff] | |
parent | 3063477445423fd5ec52efa073fb8d15c1641f4e [diff] |
Merge branch 'tb/char-may-be-unsigned' into maint Build portability fix. * tb/char-may-be-unsigned: path.c: char is not (always) signed
diff --git a/path.c b/path.c index 34f0f98..ba06ec5 100644 --- a/path.c +++ b/path.c
@@ -1369,7 +1369,7 @@ saw_tilde = 1; } else if (i >= 6) return 0; - else if (name[i] < 0) { + else if (name[i] & 0x80) { /* * We know our needles contain only ASCII, so we clamp * here to make the results of tolower() sane.