]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2218] Change DomainTree::getNodeCount()'s return type to size_t
authorMukund Sivaraman <muks@isc.org>
Fri, 21 Sep 2012 04:09:25 +0000 (09:39 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 21 Sep 2012 04:09:25 +0000 (09:39 +0530)
... so that it's unsigned.

src/lib/datasrc/memory/domaintree.h

index c0b74ebb47399dec711d077c4886f159c2402915..baeaeb88191556b54f96fbb96c7b994bf467e51b 100644 (file)
@@ -1308,7 +1308,7 @@ public:
     /// It includes nodes internally created as a result of adding a domain
     /// name that is a subdomain of an existing node of the tree.
     /// This function is mainly intended to be used for debugging.
-    int getNodeCount() const { return (node_count_); }
+    size_t getNodeCount() const { return (node_count_); }
 
     /// \name Debug function
     //@{
@@ -1441,7 +1441,7 @@ private:
 
     typename DomainTreeNode<T>::DomainTreeNodePtr root_;
     /// the node count of current tree
-    unsigned int node_count_;
+    size_t node_count_;
     /// search policy for domaintree
     const bool needsReturnEmptyNode_;
 };