Skip to content

Commit

Permalink
Merge pull request #90 from formath/parse_block_fix
Browse files Browse the repository at this point in the history
parse_block_fix
  • Loading branch information
zakheav authored Apr 4, 2019
2 parents 3a89d0c + 6da3d65 commit 5e270e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public byte[] BlockJsonToBytes(Block block) throws IOException {
4 + meta.getEdge_type_num() * 4 + meta.getEdge_type_num() * 4; // edge group info

int neighborNum = 0;
for (int i = 0; i < meta.getNode_type_num(); ++i) {
for (int i = 0; i < meta.getEdge_type_num(); ++i) {
neighborNum += block.getNeighbor().get(i) == null ? 0 :
block.getNeighbor().get(i).size();
}
Expand Down

0 comments on commit 5e270e5

Please sign in to comment.