summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-21 13:58:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-21 13:58:09 (GMT)
commit85eb0f162c5e47d37221496030dc49d10f3554a2 (patch)
tree3eb6181984352f54369a56608943427aa5a8cc83 /path.c
parent2b153408b459e2483fca0215b44b0a1199a1b352 (diff)
parent3063477445423fd5ec52efa073fb8d15c1641f4e (diff)
downloadgit-85eb0f162c5e47d37221496030dc49d10f3554a2.zip
git-85eb0f162c5e47d37221496030dc49d10f3554a2.tar.gz
git-85eb0f162c5e47d37221496030dc49d10f3554a2.tar.bz2
Merge branch 'tb/char-may-be-unsigned' into maint
Build portability fix. * tb/char-may-be-unsigned: path.c: char is not (always) signed
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 34f0f98..ba06ec5 100644
--- a/path.c
+++ b/path.c
@@ -1369,7 +1369,7 @@ only_spaces_and_periods:
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.