fix reading random data from the stack

compiler takes sizeof(float*) into account already when doing pointer
indexing (unless someone meant to read random data from the stack)