commit | 24d3ef9bc2639b54ce04bcd91980b4f2b16f08d5 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Apr 30 15:12:21 2015 -0700 |
committer | Ying Wang <wangying@google.com> | Tue Jun 09 12:44:41 2015 -0700 |
tree | 4f89522ac7e58dabbd89ee15abbe8d8558cb3492 | |
parent | b0fdad2821f268a367aca14cd3a45840d80f1365 [diff] |
Fix comparison between signed and unsigned error on darwin mode_t is a uint16_t on darwin, which causes sb.st_mode & ~S_IFMT to produce an int when the uint16_t is promoted for the operator. Cast to unsigned int before comparing against 0660U. Change-Id: Ib1439c08d9e2b297eeeba701891508d269c19a3d (cherry-pick from commit 56b37345d99f2cd85720f6b1aa1934fa3bfe29a6)