diff --git a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
index 32a47f48bd26966bab6cbc90214d7d045977bfb0..f41d962b9a2c2707c36b853c811af924f810fada 100644
--- a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
+++ b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
@@ -261,7 +261,7 @@ namespace armarx
         {
             SoPath* path = selectionNode->getPath(i);
 
-            for (unsigned int j = 0; j < path->getLength(); j++)
+            for (int j = 0; j < path->getLength(); j++)
             {
                 SoNode* node = path->getNodeFromTail(j);
                 if (!node)