From e6918fe14a7a22da70d95c7afff7310eefba08f3 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 18 Jan 2010 10:45:20 +0000 Subject: Alter type of array index variable git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900332 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/framing/FieldValue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/include') diff --git a/cpp/include/qpid/framing/FieldValue.h b/cpp/include/qpid/framing/FieldValue.h index e5746c8065..f413d5a552 100644 --- a/cpp/include/qpid/framing/FieldValue.h +++ b/cpp/include/qpid/framing/FieldValue.h @@ -203,7 +203,7 @@ inline T FieldValue::getFloatingPointValue() const { T value; uint8_t* const octets = convertIfRequired(fwv->rawOctets(), W); uint8_t* const target = reinterpret_cast(&value); - for (uint i = 0; i < W; ++i) target[i] = octets[i]; + for (size_t i = 0; i < W; ++i) target[i] = octets[i]; return value; } else { throw InvalidConversionException(); @@ -214,7 +214,7 @@ template void FieldValue::getFixedWidthValue(unsigned char* value) const { FixedWidthValue* const fwv = dynamic_cast< FixedWidthValue* const>(data.get()); if (fwv) { - for (uint i = 0; i < W; ++i) value[i] = fwv->rawOctets()[i]; + for (size_t i = 0; i < W; ++i) value[i] = fwv->rawOctets()[i]; } else { throw InvalidConversionException(); } -- cgit v1.2.1