Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change
This commit is contained in:
@@ -195,7 +195,7 @@ nsScriptableOutputStream::WriteFloat(float aFloat)
|
||||
{
|
||||
NS_ASSERTION(sizeof(float) == sizeof (PRUint32),
|
||||
"False assumption about sizeof(float)");
|
||||
return Write32(*NS_REINTERPRET_CAST(PRUint32*, &aFloat));
|
||||
return Write32(*reinterpret_cast<PRUint32*>(&aFloat));
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@@ -204,8 +204,8 @@ nsScriptableOutputStream::WriteDouble(double aDouble)
|
||||
NS_ASSERTION(sizeof(double) == sizeof(PRUint64),
|
||||
"False assumption about sizeof(double)");
|
||||
|
||||
PRUint64 val = NS_SWAP64(*NS_REINTERPRET_CAST(PRUint64*, &aDouble));
|
||||
return WriteFully(NS_REINTERPRET_CAST(char*, &val), sizeof val);
|
||||
PRUint64 val = NS_SWAP64(*reinterpret_cast<PRUint64*>(&aDouble));
|
||||
return WriteFully(reinterpret_cast<char*>(&val), sizeof val);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
||||
Reference in New Issue
Block a user