fix Issue 9617 - ulong.max is wrongly accepted by smaller signed parameter