fixed overflow bug in StlPlayer

This commit is contained in:
Matthias Jung
2015-03-23 13:40:24 +01:00
parent 5fcd57a4e2
commit 836bacc76f

View File

@@ -32,7 +32,7 @@ public:
std::istringstream iss(line);
string time, command, address;
iss >> time >> command >> address;
long parsedAdress = std::stoi(address.c_str(), 0, 16);
unsigned long long parsedAdress = std::stoull(address.c_str(), 0, 16);
gp* payload = this->allocatePayload();
unsigned char * dataElement = new unsigned char[16]; // TODO: column / burst breite
@@ -75,7 +75,7 @@ public:
(string("Corrupted tracefile, command ") + command + string(" unknown")).c_str());
}
sc_time sendingTime = std::stoi(time.c_str())*clk;
sc_time sendingTime = std::stoull(time.c_str())*clk;
if (sendingTime <= sc_time_stamp())
{