For some combinations of depth and surface pressure, the next stop as calculated in schedule.c will equal the current depth. This in turn will make the time to reach the next stop 0, triggering the assert in add_segment_ascdec.
Steps to reproduce:
$ opendeco -d 30 -t 120 -p 1.0135
Tim Segers referenced this ticket in commit e60eef4.