]> git.pld-linux.org Git - packages/poldek.git/blame - poldek-refcnt.patch
- add th-all
[packages/poldek.git] / poldek-refcnt.patch
CommitLineData
76ff0aab 1--- pkg.h-orig 2009-03-31 12:08:29.238718195 +0200
2+++ pkg.h 2009-03-31 12:08:49.843187842 +0200
3@@ -106,7 +106,7 @@
4 int32_t itime; /* date of installation */
5
6 /* private, don't touch */
7- int16_t _refcnt;
8+ uint16_t _refcnt;
9 tn_alloc *na;
10 int16_t _buf_size;
11 char _buf[0]; /* private, store all string members */
12--- pkg.c-orig 2009-03-31 11:37:37.825570800 +0200
13+++ pkg.c 2009-03-31 12:05:24.631861551 +0200
14@@ -1458,7 +1458,7 @@
15 pkg->na ? pkg->na->_refcnt : -1,
16 pkg->_refcnt, &pkg->_refcnt);
17 }
18- n_assert(pkg->_refcnt < INT16_MAX - 1);
19+ n_assert(pkg->_refcnt < UINT16_MAX - 1);
20 pkg->_refcnt++;
21 return pkg;
22 }
This page took 0.027087 seconds and 4 git commands to generate.