1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-14 01:06:12 +02:00

Merge branch 'tb/char-may-be-unsigned'

Build portability fix.

* tb/char-may-be-unsigned:
  path.c: char is not (always) signed
This commit is contained in:
Junio C Hamano 2018-11-06 15:50:22 +09:00
commit 1f8e7dc4da

2
path.c
View File

@ -1369,7 +1369,7 @@ static int is_ntfs_dot_generic(const char *name,
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.