fix compiling error in CCControlSlider.cpp on vs.
Merge pull request #5011 from Dhilan007/develop_crash

fix compiling error in CCControlSlider.cpp on vs.