fir type error (float != int) for apparently more strict python
fixed for more strict gcc syntax