Changeset 462


Ignore:
Timestamp:
2007-07-29T06:06:46+02:00 (7 years ago)
Author:
moo
Message:

avoid -1 in cov decode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager.c

    r404 r462  
    521521 
    522522    for (; len >= sizeof(long) * 2; len -= sizeof(long) * 2, p += 2) { 
    523         add_index_long(return_value, p[0], p[1]); 
     523        add_index_long(return_value, p[0], p[1] < 0 ? 0 : p[1]); 
    524524    } 
    525525} 
Note: See TracChangeset for help on using the changeset viewer.