In Ruby, `sprintf` specifier `%u` should behave as `%d`; fix
Since there's no unsigned integer in Ruby. Binary, octal and
hexadecimal negative numbers can be represented by using 2's
compliment. But decimal (not being power of 2) cannot be use
that kind of format.
@@ -838,10 +838,10 @@ retry:
case 'b':
case 'B':
base = 2; break;
+ case 'u':
case 'd':
case 'i':
sign = 1;
- case 'u':
default:
base = 10; break;
}
