From ebd80352a69db1717ebe2b62ff848b75c4ca5f22 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 11 Nov 2008 20:49:46 +0000 Subject: 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 --- cpp/src/qpid/framing/FieldValue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid') 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); -- cgit v1.2.1