summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid')
-rw-r--r--cpp/src/qpid/framing/FieldValue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/FieldValue.h b/cpp/src/qpid/framing/FieldValue.h
index 4f78d7f0f2..8a2d9e49e3 100644
--- a/cpp/src/qpid/framing/FieldValue.h
+++ b/cpp/src/qpid/framing/FieldValue.h
@@ -139,7 +139,7 @@ class FixedWidthValue : public FieldValue::Data {
}
FixedWidthValue(uint64_t v)
{
- for (int i = width; i > 0; --i) {
+ for (int i = width; i > 1; --i) {
octets[i-1] = (uint8_t) (0xFF & v); v >>= 8;
}
octets[0] = (uint8_t) (0xFF & v);