use suitable type
Merge pull request #1956 from cubicdaiya/issues/suitable_type5

Use size_t instead of int