mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
not using size_t now (gcc compatibility)
This commit is contained in:
parent
2a08038d04
commit
f7132c2447
@ -51,7 +51,7 @@ public:
|
|||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
CListEle *head;
|
CListEle *head;
|
||||||
size_t cur_size;
|
int cur_size;
|
||||||
public:
|
public:
|
||||||
CList<T,F>() { head = 0; cur_size = 0; }
|
CList<T,F>() { head = 0; cur_size = 0; }
|
||||||
~CList<T,F>() { clear(); }
|
~CList<T,F>() { clear(); }
|
||||||
@ -64,7 +64,7 @@ public:
|
|||||||
head = new CListEle( a , head );
|
head = new CListEle( a , head );
|
||||||
++cur_size;
|
++cur_size;
|
||||||
}
|
}
|
||||||
size_t size() {
|
int size() {
|
||||||
return cur_size;
|
return cur_size;
|
||||||
}
|
}
|
||||||
class iterator {
|
class iterator {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user