fix linux compile?

This commit is contained in:
zeromus 2009-05-18 04:37:03 +00:00
parent ca540cb6b6
commit fec0ae896e
2 changed files with 4 additions and 2 deletions

View File

@ -550,7 +550,9 @@ bool BackupDevice::load_state(std::istream* is)
read32le(&com,is);
read32le(&addr_size,is);
read32le(&addr_counter,is);
read32le((u32*)&state,is);
u32 temp;
read32le(&temp,is);
state = (STATE)temp;
readbuffer(data,is);
readbuffer(data_autodetect,is);
}

View File

@ -97,7 +97,7 @@ private:
std::string filename;
std::vector<u8> data;
std::vector<u8> data_autodetect;
enum : u32 {
enum STATE {
DETECTING = 0, RUNNING = 1
} state;