Fix "conditional expression constant" warning
Fix size_t to int conversion