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 | e6918fe14a7a22da70d95c7afff7310eefba08f3 (patch) | |
tree | 9347af57452a853d15b94fbe11289148eb525084 /cpp | |
parent | 385e801d72960291039b52fe8777acff65b9e7ce (diff) | |
download | qpid-python-e6918fe14a7a22da70d95c7afff7310eefba08f3.tar.gz |
Alter type of array index variable
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/include/qpid/framing/FieldValue.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<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(); } |