Hopefully fixed the GCC2 build without changing the workings of the code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36151 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a9fb9013e4
commit
8bc3360be8
@ -254,7 +254,7 @@ status_t
|
||||
ValueNode<float>::GetString(BString &predicate)
|
||||
{
|
||||
char buffer[32];
|
||||
int32 value = (int32)fValue;
|
||||
int32 value = *reinterpret_cast<int32*>(&fValue);
|
||||
sprintf(buffer, "0x%08lx", value);
|
||||
predicate.SetTo(buffer);
|
||||
return B_OK;
|
||||
@ -266,7 +266,7 @@ status_t
|
||||
ValueNode<double>::GetString(BString &predicate)
|
||||
{
|
||||
char buffer[32];
|
||||
int64 value = (int64)fValue;
|
||||
int64 value = *reinterpret_cast<int64*>(&fValue);
|
||||
sprintf(buffer, "0x%016Lx", value);
|
||||
predicate.SetTo(buffer);
|
||||
return B_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user