Fixed higherMultiple for half types

This commit is contained in:
Christophe Riccio 2011-09-20 00:44:08 +01:00
parent 166c75afec
commit 06f1deafc8

View File

@ -36,7 +36,7 @@ GLM_FUNC_QUALIFIER detail::thalf higherMultiple
float Source = SourceH.toFloat(); float Source = SourceH.toFloat();
float Multiple = MultipleH.toFloat(); float Multiple = MultipleH.toFloat();
int Tmp = int(float(Source)) % int(); int Tmp = int(float(Source)) % int(Multiple);
return detail::thalf(Tmp ? Source + Multiple - float(Tmp) : Source); return detail::thalf(Tmp ? Source + Multiple - float(Tmp) : Source);
} }