common: use safer uint64_t for list size

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2017-09-07 20:51:56 -07:00
parent 7fff24e10e
commit 0ddd260a32
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -63,7 +63,7 @@ public:
private:
item *_front, *_back;
int _size;
size_t _size;
public:
xlist(const xlist& other) {
@ -79,7 +79,7 @@ public:
assert(_back == 0);
}
int size() const {
size_t size() const {
assert((bool)_front == (bool)_size);
return _size;
}