fixes unit test

This commit is contained in:
Eyck Jentzsch 2023-03-18 12:47:43 +01:00
parent 654cf3f9e5
commit 65461ccc48
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class FstFileParser {
// String version = FstLibrary.fstReaderGetVersionString(fst);
long endTime = FstLibrary.fstReaderGetEndTime(fst);
byte timeScale = FstLibrary.fstReaderGetTimescale(fst);
builder.setMaxTime(endTime, timeScale);
builder.setMaxTime(endTime, -timeScale);
FstLibrary.fstReaderIterateHierRewind(fst);
Pointer p = FstLibrary.fstReaderIterateHier(fst);
while(p!=null && !p.equals(Pointer.NULL)) {

View File

@ -528,7 +528,7 @@ public class FtrDbLoader implements IWaveformDbLoader {
CborType next = cborDecoder.peekType();
while(next != null && !break_type.isEqualType(next)) {
long sz = cborDecoder.readArrayLength();
assert(sz==5);
assert(sz==5 || sz==3);
long type_id = cborDecoder.readInt();
long from_id = cborDecoder.readInt();
long to_id = cborDecoder.readInt();