From 0f327ee25b5ab4b9a38a8620a666e6bfc66000e7 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Thu, 30 Aug 2012 18:02:19 +0000 Subject: NO-JIRA: Minor updates which allow gcc 4.7 to compile git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1379040 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/asyncStore/jrnl2/RecordHeader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid') diff --git a/cpp/src/qpid/asyncStore/jrnl2/RecordHeader.cpp b/cpp/src/qpid/asyncStore/jrnl2/RecordHeader.cpp index 2d4a487791..0f578cfa79 100644 --- a/cpp/src/qpid/asyncStore/jrnl2/RecordHeader.cpp +++ b/cpp/src/qpid/asyncStore/jrnl2/RecordHeader.cpp @@ -97,9 +97,9 @@ RecordHeader::getHeaderSize() { uint32_t RecordHeader::getCheckSum(uint32_t initialValue) const { uint32_t cs = initialValue; - for (unsigned char* p = (unsigned char*)this; - p < (unsigned char*)this + getHeaderSize() + getBodySize(); - p++) { + for (unsigned char const * p = reinterpret_cast(this); + p < reinterpret_cast(this) + getHeaderSize() + getBodySize(); + p++) { cs ^= (uint32_t)(*p); bool carry = cs & uint32_t(0x80000000); cs <<= 1; -- cgit v1.2.1