Commit 481978e
Benjamin Moody
wrann: allow intervals larger than 2**31 - 1.
If the gap between two consecutive annotation timestamps is greater
than 2**31 - 1 ticks, it must be represented as two or more SKIP
pseudo-annotations. Handle this correctly in field2bytes() (to
actually generate the correct byte sequences) and in
Annotation.check_field() (to permit the application to specify such a
gap.)
(Previously, if there was a gap of exactly 2**31 ticks, this would not
be caught by check_field, and field2bytes would incorrectly generate a
SKIP of -2**31 instead.)1 parent c098e38 commit 481978e
1 file changed
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | 469 | | |
472 | 470 | | |
473 | 471 | | |
| |||
1370 | 1368 | | |
1371 | 1369 | | |
1372 | 1370 | | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1386 | 1384 | | |
1387 | 1385 | | |
1388 | 1386 | | |
| |||
0 commit comments