MSVC: fix warnings

```
class.c(497) : warning C4018: '<' : signed/unsigned mismatch
numeric.c(203) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
numeric.c(226) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
```