diff options
| author | Gordon Sim <gsim@apache.org> | 2010-01-18 10:45:20 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-01-18 10:45:20 +0000 |
| commit | 4bf5652d3d79d64ce22bbb1c9c2cddcec4d30054 (patch) | |
| tree | d8dac6946dca2907cac44cde4ff08fb36a6a4f03 /qpid/cpp/include | |
| parent | 515c3caa53bfed9a1d0fe84075a27471c242359e (diff) | |
| download | qpid-python-4bf5652d3d79d64ce22bbb1c9c2cddcec4d30054.tar.gz | |
Alter type of array index variable
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@900332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/framing/FieldValue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/include/qpid/framing/FieldValue.h b/qpid/cpp/include/qpid/framing/FieldValue.h index e5746c8065..f413d5a552 100644 --- a/qpid/cpp/include/qpid/framing/FieldValue.h +++ b/qpid/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<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 @@ template <int W> void FieldValue::getFixedWidthValue(unsigned char* value) const { 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(); } |
