Skip to content

Commit

Permalink
Print a warning if a BoolValue in e2p is not at a byte boundary.
Browse files Browse the repository at this point in the history
  • Loading branch information
breaker27 committed Mar 23, 2014
1 parent 1eb21b2 commit 9982c0b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -383,6 +383,11 @@ else if (element.getNodeName().equals("BoolValue"))
sb.append("}" + newline);
sb.append(newline);

if (offset % 8 != 0)
{
System.err.println("Warning: BoolValue " + ID + " not a byte boundary! e2p leayout should be corrected.");
}

offset += isArray ? 8 * arrayLength : 8;
}
else if (element.getNodeName().equals("Reserved"))
Expand Down

0 comments on commit 9982c0b

Please sign in to comment.