Fix build on CURRENT.
This is a bit defensive, static_cast<int> might've cut it as well.
Approved by: mentors (implicit)