Author: gsim
Date: Mon Jan 18 10:45:20 2010
New Revision: 900332
URL: http://svn.apache.org/viewvc?rev=900332&view=rev
Log:
Alter type of array index variable
Modified:
qpid/trunk/qpid/cpp/include/qpid/framing/FieldValue.h
Modified: qpid/trunk/qpid/cpp/include/qpid/framing/FieldValue.h
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/framing/FieldValue.h?rev=900332&r1=900331&r2=900332&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/framing/FieldValue.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/framing/FieldValue.h Mon Jan 18 10:45:20
2010
@@ -203,7 +203,7 @@
T value;
uint8_t* const octets = convertIfRequired(fwv->rawOctets(), W);
uint8_t* const target = reinterpret_cast<uint8_t*>(&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 @@
{
FixedWidthValue<W>* const fwv = dynamic_cast< FixedWidthValue<W>*
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();
}
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]