fix compiling error cause by using 'fmaxf'.