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.
MODIFY
mrbgems/mruby-sprintf/src/sprintf.c
mrbgems/mruby-sprintf/src/sprintf.c
@@ -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;
}

In Ruby, `sprintf` specifier `%u` should behave as `%d`; fix #3730

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.