Remove redundant type casts

size_t -> int -> size_t
Merge pull request #75 from maksqwe/type_casting_fix

Remove redundant type casts