commit | 3085bc967532c2ee95ea6eb1748b177d5897cef6 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Apr 30 15:12:21 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Tue May 05 17:31:06 2015 -0700 |
tree | aabaf99cd14cfdc8b43659023b4a7c9e3b1a7b8a | |
parent | f350f92fc3ee9840880fec0ad0a1cf24a121555f [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 picked from commit 56b37345d99f2cd85720f6b1aa1934fa3bfe29a6)