From: Junio C Hamano Date: Wed, 21 Nov 2018 13:58:09 +0000 (+0900) Subject: Merge branch 'tb/char-may-be-unsigned' into maint X-Git-Tag: v2.19.2~2 X-Git-Url: https://www.git.lorimer.id.au/gitweb.git/diff_plain/85eb0f162c5e47d37221496030dc49d10f3554a2?hp=2b153408b459e2483fca0215b44b0a1199a1b352 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 34f0f98349..ba06ec5b2d 100644 --- a/path.c +++ b/path.c @@ -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.