[gjs] object: Change linked list size() to return size_t



commit 7681aa5f70693b2c6a4326d751719fc52f98089a
Author: Philip Chimento <philip chimento gmail com>
Date:   Mon May 21 14:36:58 2018 -0400

    object: Change linked list size() to return size_t
    
    This brings the method in line with the convention in the STL.
    
    Unreviewed, pushing to fix logging build.

 gi/object.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index 71a613af..b4adb8d0 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -98,9 +98,9 @@ class GjsListLink {
         m_prev = m_next = NULL;
     }
 
-    int size() {
+    size_t size() {
         GjsListLink *elem = this;
-        int count = 0;
+        size_t count = 0;
 
         do {
             count++;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]