Portability fixes.

- Fix for time-as-int on 32-bit systems.

    - Skipping ds2txt's index output for test diffing, as it seems
      non-portable.
This commit is contained in:
Robin Sommer 2012-05-16 18:00:44 -07:00
parent be6567f437
commit 99db264775
12 changed files with 13 additions and 137 deletions

View file

@ -61,7 +61,7 @@ std::string DataSeries::LogValueToString(threading::Value *val)
if ( ds_use_integer_for_time )
{
std::ostringstream ostr;
ostr << (unsigned long)(DataSeries::TIME_SCALE * val->val.double_val);
ostr << (uint64_t)(DataSeries::TIME_SCALE * val->val.double_val);
return ostr.str();
}
else