summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-11-11 20:49:46 +0000
committerRafael H. Schloming <rhs@apache.org>2008-11-11 20:49:46 +0000
commitebd80352a69db1717ebe2b62ff848b75c4ca5f22 (patch)
tree326950c23bad07937f24acbccd96a1e144148de9 /cpp/src/qpid/framing
parent2b9aba3af8c27b22e4fdc3d8ccd3e0aae0c5c6fc (diff)
downloadqpid-python-ebd80352a69db1717ebe2b62ff848b75c4ca5f22.tar.gz
fixed encoding of 64 bit types and added additional tests for 64 bit integers
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing')
-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);