Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
Fix potential invalid tick generation on VDMs
Browse files Browse the repository at this point in the history
  • Loading branch information
iabarca committed Jul 25, 2016
1 parent 6c99236 commit 94f3a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/vdm/VDMGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public List<Path> generate() throws IOException {
+ "\""));
} else {
lines.add(segment(count++, "SkipAhead", "skip", "starttick \"" + (previousEndTick + 1)
+ "\"", "skiptotick \"" + (tick.getStart() - 500) + "\""));
+ "\"", "skiptotick \"" + Math.max(0, tick.getStart() - 500) + "\""));
}
String command = "startrecording";
if (tick.getType().equals(Tick.EXEC_RECORD_SEGMENT)) {
Expand Down

0 comments on commit 94f3a97

Please sign in to comment.