Slight simplification and fix gcc2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36150 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5e818c534c
commit
a9fb9013e4
@ -254,8 +254,8 @@ status_t
|
||||
ValueNode<float>::GetString(BString &predicate)
|
||||
{
|
||||
char buffer[32];
|
||||
int32 value = fValue;
|
||||
sprintf(buffer, "0x%08lx", *(int32*)&value);
|
||||
int32 value = (int32)fValue;
|
||||
sprintf(buffer, "0x%08lx", value);
|
||||
predicate.SetTo(buffer);
|
||||
return B_OK;
|
||||
}
|
||||
@ -266,8 +266,8 @@ status_t
|
||||
ValueNode<double>::GetString(BString &predicate)
|
||||
{
|
||||
char buffer[32];
|
||||
int64 value = fValue;
|
||||
sprintf(buffer, "0x%016Lx", *(int64*)&value);
|
||||
int64 value = (int64)fValue;
|
||||
sprintf(buffer, "0x%016Lx", value);
|
||||
predicate.SetTo(buffer);
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user