[Sparc] Explicitly cast -1 to unsigned to fix buildbot errors.