
With 32-bit ints, the former could give too small a block for the return value when, e.g., mode = 2 or 4 and ndigits = 24 (16 for 16-bit ints). tweak to work with 32-bit ints and 64-bit long
With 32-bit ints, the former could give too small a block for the return value when, e.g., mode = 2 or 4 and ndigits = 24 (16 for 16-bit ints). tweak to work with 32-bit ints and 64-bit long