Merge "Fix 64-bit build."

This commit is contained in:
Narayan Kamath 2014-02-24 11:14:07 +00:00 committed by Gerrit Code Review
commit b26e4944e2

View File

@ -238,7 +238,7 @@ static int map_fd_ro(const int fd) {
if ((fd_stat.st_uid != 0) if ((fd_stat.st_uid != 0)
|| (fd_stat.st_gid != 0) || (fd_stat.st_gid != 0)
|| ((fd_stat.st_mode & (S_IWGRP | S_IWOTH)) != 0) || ((fd_stat.st_mode & (S_IWGRP | S_IWOTH)) != 0)
|| (fd_stat.st_size < sizeof(prop_area)) ) { || (fd_stat.st_size < static_cast<off_t>(sizeof(prop_area))) ) {
return -1; return -1;
} }