From 289e632a40a8b9cf9898cdfa09f313c3fc05f48d Mon Sep 17 00:00:00 2001 From: boyu0 Date: Tue, 25 Mar 2014 11:36:35 +0800 Subject: [PATCH] closed #4513: change 1.0 to 1.0f to avoid the warning. --- tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp index 12063ca97b..86d0df0e79 100644 --- a/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp +++ b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp @@ -1871,14 +1871,14 @@ void PremultipliedAlphaTest::onEnter() // Toggle next line to see old behavior // this->emitter.opacityModifyRGB = NO; - _emitter->setStartColor(Color4F(1, 1, 1, 1)); - _emitter->setEndColor(Color4F(1, 1, 1, 0)); - _emitter->setStartColorVar(Color4F(0, 0, 0, 0)); - _emitter->setEndColorVar(Color4F(0, 0, 0, 0)); + _emitter->setStartColor(Color4F(1.0f, 1.0f, 1.0f, 1.0f)); + _emitter->setEndColor(Color4F(1.0f, 1.0f, 1.0f, 0.0f)); + _emitter->setStartColorVar(Color4F(0.0f, 0.0f, 0.0f, 0.0f)); + _emitter->setEndColorVar(Color4F(0.0f, 0.0f, 0.0f, 0.0f)); this->addChild(_emitter, 10); - schedule(schedule_selector(PremultipliedAlphaTest::readdPaticle), 1.0); + schedule(schedule_selector(PremultipliedAlphaTest::readdPaticle), 1.0f); } // PremultipliedAlphaTest2