From c137c86802da73baf26ebf39d6ae87a93ed0ecc0 Mon Sep 17 00:00:00 2001
From: Francois Keith <francois.keith@aist.go.jp>
Date: Sat, 10 Jul 2010 01:57:58 +0900
Subject: [PATCH] Remove warning for the conversion unsigned -> bool

---
 src/dynamic.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dynamic.cpp b/src/dynamic.cpp
index 137373f..91a545b 100644
--- a/src/dynamic.cpp
+++ b/src/dynamic.cpp
@@ -955,12 +955,12 @@ commandLine( const std::string& cmdLine,
   else if( cmdLine == "setComputeCom" )
     {
       unsigned int b; cmdArgs >> b;
-      comActivation(b);
+      comActivation((b!=0));
     }
   else if( cmdLine == "setComputeZmp" )
     {
       unsigned int b; cmdArgs >> b;
-      zmpActivation(b);
+      zmpActivation((b!=0));
     }
   else if( cmdLine == "setProperty" )
     {
-- 
GitLab