Code refactor to fix long line
Prevent possible job priority overflow

Insure the value does not exceed 32 bits