X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilesys%2Finode.c;h=8e954abc32f35c782cd04c9f0715a7291a86edbb;hb=e3e410d4390200c8e24c2f0b934a4dec3e339f59;hp=777138b10f479530cb3daed59c5b331e2af1050a;hpb=4decb23c1ffd33f89d7b58fd801332067a31d399;p=pintos-anon diff --git a/src/filesys/inode.c b/src/filesys/inode.c index 777138b..8e954ab 100644 --- a/src/filesys/inode.c +++ b/src/filesys/inode.c @@ -258,7 +258,7 @@ inode_write_at (struct inode *inode, const void *buffer_, off_t size, while (size > 0) { /* Sector to write, starting byte offset within sector. */ - off_t sector_idx = byte_to_sector (inode, offset); + disk_sector_t sector_idx = byte_to_sector (inode, offset); int sector_ofs = offset % DISK_SECTOR_SIZE; /* Bytes left in inode, bytes left in sector, lesser of the two. */