This variant of the build options is not tested by the build server
(--enable-networklogging), consequently, these errors were not
discovered when -Werror=old-style-cast was added.
Apparently no-one else uses Stagehand any more...
Change-Id: I69fdaa03608723b66be080bd7749e243b7ea6a89
Signed-off-by: David Steele <david.steele@samsung.com>
}
else if( '\x00' <= *c && *c <= '\x1f' )
{
- escapedValue << "\\u" << std::hex << std::setw(4) << std::setfill('0') << (int)*c;
+ escapedValue << "\\u" << std::hex << std::setw(4) << std::setfill('0') << int(*c);
}
else
{
{
// write out the time stamp
char buffer[64];
+ double usec = marker.GetTimeStamp().microseconds;
int size = snprintf( buffer, sizeof(buffer),"%.6f (seconds), %s\n",
- ( (double) marker.GetTimeStamp().microseconds * MICROSECONDS_TO_SECOND ),
+ usec * MICROSECONDS_TO_SECOND,
description );
return mSocket->Write( buffer, size );