Codechange: Use SQInteger for generic numbers in script_priorityqueue
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
class ScriptPriorityQueue : public ScriptObject {
|
||||
public:
|
||||
typedef std::pair<int64, HSQOBJECT> PriorityItem;
|
||||
typedef std::pair<SQInteger, HSQOBJECT> PriorityItem;
|
||||
private:
|
||||
struct PriorityComparator {
|
||||
bool operator()(const PriorityItem &lhs, const PriorityItem &rhs) const noexcept
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
* @param priority The priority to assign the item.
|
||||
* @return True if the item was inserted, false if it was already in the queue.
|
||||
*/
|
||||
bool Insert(void *item, int64 priority);
|
||||
bool Insert(void *item, SQInteger priority);
|
||||
|
||||
/**
|
||||
* Remove and return the item with the lowest priority.
|
||||
|
Reference in New Issue
Block a user