← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 4014: fix a compile warning

 

------------------------------------------------------------
revno: 4014
committer: bchareyre <bruno.chareyre@xxxxxxxxxxxxxxx>
timestamp: Wed 2017-03-08 13:27:21 +0100
message:
  fix a compile warning
modified:
  py/wrapper/yadeWrapper.cpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/wrapper/yadeWrapper.cpp'
--- py/wrapper/yadeWrapper.cpp	2017-01-19 18:11:51 +0000
+++ py/wrapper/yadeWrapper.cpp	2017-03-08 12:27:21 +0000
@@ -125,7 +125,7 @@
 		const shared_ptr<Clump> clump(YADE_PTR_CAST<Clump>(clumpBody->shape));
 		if (clump->members.size()==1 ){
 			Clump::del(clumpBody,memberBody); //phD was not commented out
-			for (int i=0; i<clump->ids.size(); i++){
+			for (unsigned i=0; i<clump->ids.size(); i++){
 				if (clump->ids[i] == memberBody->getId()){
 					clump->ids.erase(clump->ids.begin()+i);
 				}
@@ -135,7 +135,7 @@
 			
 		}else{
 			Clump::del(clumpBody,memberBody); //pHD was not commented out
-			for (int i=0; i<clump->ids.size(); i++){
+			for (unsigned i=0; i<clump->ids.size(); i++){
 				if (clump->ids[i] == memberBody->getId()){
 					clump->ids.erase(clump->ids.begin()+i);
 				}