Issue #292 - use long instead of int on error message for min/max values