Mercurial > hg > xemacs-beta
diff src/nt.c @ 462:0784d089fdc9 r21-2-46
Import from CVS: tag r21-2-46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:44:37 +0200 |
parents | c33ae14dd6d0 |
children | 666d73d6ac56 |
line wrap: on
line diff
--- a/src/nt.c Mon Aug 13 11:43:25 2007 +0200 +++ b/src/nt.c Mon Aug 13 11:44:37 2007 +0200 @@ -1421,7 +1421,7 @@ } else { - buf->st_nlink = info.nNumberOfLinks; + buf->st_nlink = (short) info.nNumberOfLinks; /* Might as well use file index to fake inode values, but this is not guaranteed to be unique unless we keep a handle open all the time (even then there are situations where it is @@ -1432,9 +1432,9 @@ /* MSVC defines _ino_t to be short; other libc's might not. */ if (sizeof (buf->st_ino) == 2) - buf->st_ino = fake_inode ^ (fake_inode >> 16); + buf->st_ino = (unsigned short) (fake_inode ^ (fake_inode >> 16)); else - buf->st_ino = fake_inode; + buf->st_ino = (unsigned short) fake_inode; /* consider files to belong to current user */ buf->st_uid = 0; @@ -1618,7 +1618,7 @@ buf->st_ino = (unsigned short) (fake_inode ^ (fake_inode >> 16)); /* consider files to belong to current user */ - buf->st_uid = buf->st_gid = nt_fake_unix_uid; + buf->st_uid = buf->st_gid = (short) nt_fake_unix_uid; /* volume_info is set indirectly by map_win32_filename */ buf->st_dev = volume_info.serialnum;