Commit c744356f authored by garciay's avatar garciay
Browse files

Add Dirk's changes

parent 728c3cfd
......@@ -49,7 +49,14 @@ public class Integer extends ICodec {
value = buf.readBits(lengthInBits);
try {
Matcher matcher = UNSIGNED_VARIANT.matcher(decodingHypothesis.getTypeEncodingVariant());
hint = mainCodec.getHint(decodingHypothesis.getName() + "Sign");
Matcher matcher;
if (hint==null) {
matcher = UNSIGNED_VARIANT.matcher(decodingHypothesis.getTypeEncodingVariant());
}
else {
matcher = UNSIGNED_VARIANT.matcher(hint);
}
if(matcher.find()) {
// Unsigned integer
if(lengthInBits >= java.lang.Integer.SIZE) {
......
......@@ -16,7 +16,9 @@ public class UtDenmTermination extends UtRecord {
private void setLengths() {
mainCodec.setHint("StationIDLen", "32");
mainCodec.setHint("StationIDSign", "unsigned");
mainCodec.setHint("SequenceNumberLen", "16");
mainCodec.setHint("SequenceNumberSign", "unsigned");
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment