Skip to content

Commit

Permalink
common: use safer uint64_t for list size
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Sep 12, 2017
1 parent 7fff24e commit 0ddd260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/xlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class xlist {

private:
item *_front, *_back;
int _size;
size_t _size;

public:
xlist(const xlist& other) {
Expand All @@ -79,7 +79,7 @@ class xlist {
assert(_back == 0);
}

int size() const {
size_t size() const {
assert((bool)_front == (bool)_size);
return _size;
}
Expand Down

0 comments on commit 0ddd260

Please sign in to comment.