Without the cast in this PR, a warning is generated when building with "swift build", or with Xcode, and possibly when building directly with the clang compiler.
It seems from inspection the value is unlikely to ever exceed the limit of the 32 bit unsigned int, so casting seems like a safe way to quiet the warning.
Without the cast in this PR, a warning is generated when building with "swift build", or with Xcode, and possibly when building directly with the clang compiler.
It seems from inspection the value is unlikely to ever exceed the limit of the 32 bit unsigned int, so casting seems like a safe way to quiet the warning.