summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-06 06:50:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-06 06:50:22 (GMT)
commit1f8e7dc4da901c33b52ea632ab651838abfb4864 (patch)
tree022c8c44ab3dd72709e1c0a2eddc6916a99a870d
parentb9c3f062b605df1a34a198cfff4ae850484a110d (diff)
parent3063477445423fd5ec52efa073fb8d15c1641f4e (diff)
downloadgit-1f8e7dc4da901c33b52ea632ab651838abfb4864.zip
git-1f8e7dc4da901c33b52ea632ab651838abfb4864.tar.gz
git-1f8e7dc4da901c33b52ea632ab651838abfb4864.tar.bz2
Merge branch 'tb/char-may-be-unsigned'
Build portability fix. * tb/char-may-be-unsigned: path.c: char is not (always) signed
-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.