[cluttermm] Timeline: Fix a compilation warning.



commit 5e352725b35e14d2b4da612232c80e8865b74304
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 13 09:13:56 2010 +0200

    Timeline: Fix a compilation warning.
    
    * clutter/src/timeline.ccg: Use the correct type in the for() loop.

 ChangeLog                |    6 ++++++
 clutter/src/timeline.ccg |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bd4730b..41ea2c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-13  Murray Cumming  <murrayc murrayc com>
+
+	Timeline: Fix a compilation warning.
+
+	* clutter/src/timeline.ccg: Use the correct type in the for() loop.
+
 2010-09-07  Chris Kühl  <chrisk openismus com>
 
 	Fix issue with last commit where returned vectors were 2x intended size.
diff --git a/clutter/src/timeline.ccg b/clutter/src/timeline.ccg
index b4927e3..0e45a42 100644
--- a/clutter/src/timeline.ccg
+++ b/clutter/src/timeline.ccg
@@ -33,9 +33,9 @@ std::vector<Glib::ustring> Timeline::list_markers(gint frame_num) const
   std::vector<Glib::ustring> markerVec;
   markerVec.reserve(n_markers);
 
-  for (int i = 0; i < n_markers; ++i)
+  for(gsize i = 0; i < n_markers; ++i)
   {
-      markerVec.push_back(Glib::ustring(markers[i]));
+    markerVec.push_back(Glib::ustring(markers[i]));
   }
 
   return markerVec;



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