Changeset 63923e3 in git


Ignore:
Timestamp:
2007-07-29T04:06:46Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
51cfc2b
Parents:
1387847
Message:

avoid -1 in cov decode

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@462 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coverager.c

    r061dbf9 r63923e3  
    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.