From 52464b8f9ae056e1cb22f6451c6404b6dace4dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 16 Jul 2009 12:34:54 +0000 Subject: [PATCH] Couldn't get this to compile with current GCC4 on Haiku without this change, please someone review. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31604 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/QueryPredicate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/storage/QueryPredicate.cpp b/src/kits/storage/QueryPredicate.cpp index 9e6b230da4..143dd292f3 100644 --- a/src/kits/storage/QueryPredicate.cpp +++ b/src/kits/storage/QueryPredicate.cpp @@ -254,7 +254,7 @@ status_t ValueNode::GetString(BString &predicate) { char buffer[32]; - sprintf(buffer, "0x%08lx", *(int32*)&fValue); + sprintf(buffer, "0x%08lx", (const int32&)fValue); predicate.SetTo(buffer); return B_OK; } @@ -265,7 +265,7 @@ status_t ValueNode::GetString(BString &predicate) { char buffer[32]; - sprintf(buffer, "0x%016Lx", *(int64*)&fValue); + sprintf(buffer, "0x%016Lx", (const int64&)fValue); predicate.SetTo(buffer); return B_OK; }