From f3e4c705eb1ef277e56438bc9e607474f5020b69 Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 21 Oct 2014 11:47:28 +0800 Subject: [PATCH] more warnings fixed --- tests/cpp-tests/Classes/Sprite3DTest/Sprite3DTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpp-tests/Classes/Sprite3DTest/Sprite3DTest.cpp b/tests/cpp-tests/Classes/Sprite3DTest/Sprite3DTest.cpp index 10e39abed4..8e79b5b1f3 100644 --- a/tests/cpp-tests/Classes/Sprite3DTest/Sprite3DTest.cpp +++ b/tests/cpp-tests/Classes/Sprite3DTest/Sprite3DTest.cpp @@ -1272,7 +1272,7 @@ void Sprite3DWithOBBPerfromanceTest::onTouchesBegan(const std::vector& t { if(ray.intersects(_obb[i])) { - _intersetList.insert(i); + _intersetList.insert((int)i); return; } } @@ -1294,7 +1294,7 @@ void Sprite3DWithOBBPerfromanceTest::onTouchesMoved(const std::vector& t for(decltype(obbSize) i = 0; i < obbSize; i++) { - if(_intersetList.find(i) != _intersetList.end()) + if(_intersetList.find((int)i) != _intersetList.end()) _obb[i]._center = Vec3(location.x,location.y,0); } }