Use int instead of long to pass width parameters in non-public functions.