Two bugfixes (float) not (float *) and an optimization to