commit | c2b57280f966d3ad56dc5c2aa16ed8703af14f0f | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Jul 15 18:19:28 2013 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Jul 15 19:39:04 2013 -0700 |
tree | b1ab3a6576515560d72a19489d5b405d69c8f69b | |
parent | 1043c70d4cc990c8c94b37dbcc3ce32e5122f357 [diff] |
model-wire-ccnb: Fixing a known bug with CCNb parsing Refs #1008 (http://redmine.named-data.net/)
diff --git a/model/wire/ccnb/ccnb-parser/syntax-tree/block.cc b/model/wire/ccnb/ccnb-parser/syntax-tree/block.cc index 06c8e2c..67882a9 100644 --- a/model/wire/ccnb/ccnb-parser/syntax-tree/block.cc +++ b/model/wire/ccnb/ccnb-parser/syntax-tree/block.cc
@@ -55,7 +55,7 @@ uint8_t byte = 0; while (!start.IsEnd() && !(byte & CCN_TT_HBIT)) { - value <<= 8; + value <<= 7; value += byte; byte = start.ReadU8 (); // Block::counter ++;