fixed overflow bug in StlPlayer
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user