Fix PR3401: when using large integers, the type