apps: fix warning about size_t / int conversion