Browse Source

avoid -1 in cov decode

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@462 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
63923e3e34
  1. 2
      coverager.c

2
coverager.c

@ -520,7 +520,7 @@ PHP_FUNCTION(xcache_coverager_decode)
}
for (; len >= sizeof(long) * 2; len -= sizeof(long) * 2, p += 2) {
add_index_long(return_value, p[0], p[1]);
add_index_long(return_value, p[0], p[1] < 0 ? 0 : p[1]);
}
}
/* }}} */

Loading…
Cancel
Save