Fix parse_check()

+ Fix missing `const` argv specifier in `parse_check()`
+ Add explicit cast to int in `parse_check()`