Compilation fix
authorGabe Black <gblack@eecs.umich.edu>
Sat, 10 Mar 2007 20:21:55 +0000 (15:21 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 10 Mar 2007 20:21:55 +0000 (15:21 -0500)
--HG--
extra : convert_revision : 8bfa5e9408d1ead0197aab5078c248876f90ea7a

src/dev/sparc/mm_disk.cc

index b8cabd0cf67a523a089f1b5644b5c09c380b0b33..81c5c589ac6f5a5c90ac663d12ba2564a510fa6a 100644 (file)
@@ -45,7 +45,7 @@
 #include "sim/system.hh"
 
 MmDisk::MmDisk(Params *p)
-    : BasicPioDevice(p), image(p->image), curSector((uint64_t)-1), dirty(false)
+    : BasicPioDevice(p), image(p->image), curSector((off_t)-1), dirty(false)
 {
     std::memset(&diskData, 0, SectorSize);
     pioSize = image->size() * SectorSize;