[Chapel Merge] Update signature of _toUnsigned function in the IO

Branch: refs/heads/master
Revision: d39b0a8
Author: daviditen
Log Message:

Merge pull request #16926 from daviditen/llvm-gasnet-integer-format

Update signature of _toUnsigned function in the IO module

[Reviewed by @mppf]

For a uint(8) argument, the _toUnsigned(x: int(16)) overload was getting
called instead of the desired generic _toUnsigned(x:?t) where isUintType(t).
Make this function less generic so it will be chosen instead by removing the
where clause and partially specifying the type of x: uint(?w).

Fixes unsigned integer formatting errors for LLVM+GASNet.

Signed-off-by: David Iten daviditen@users.noreply.github.com

Modified Files:
M modules/standard/IO.chpl

Compare: Comparing 75b2f0cad550...d39b0a8f53cd · chapel-lang/chapel · GitHub